HOW TO MOVE DATAFILES FROM ONE  DISK RAID TO ANOTHER:PLZ HELP ME  :=)

Hi all,
For Tunning reasons : perform The I/O from the Instance to datafiles (database). I decide to move some Index datafiles from One DISK RAID to another.
I'm on Linux Redhat Server and Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
My database 's On PRODUCTION and there 're many web applications updating some databases tables and for sure using Index tablespace. I preapared yet my procedure to move datafiles but I'm posting this to be sure that I will not have BAD EFFECTS on my Oracle database.
So I plan without SHUTDOWN MY DATABASE to these steps :
/*Step1 : */
ALTER TABLESPACE INDX OFFLINE ;
/*Step 2 : move datafiles to new disk raid*/
mv /u01/oraindx/DB01/indx01_05.dbf /u01/oraindx2/DB01/indx01_05.dbf
mv /u01/oraindx/DB01/indx01_06.dbf /u01/oraindx2/DB01/indx01_06.dbf
mv /u01/oraindx/DB01/indx01_07.dbf /u01/oraindx2/DB01/indx01_07.dbf
/*Step 3 : */
ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_05.dbf' TO '/u01/oraindx2/DB01/indx01_05.dbf';
ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_06.dbf' TO '/u01/oraindx2/DB01/indx01_06.dbf';
ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_07.dbf' TO '/u01/oraindx2/DB01/indx01_07.dbf';
/*Step 4 : */
ALTER TABLESPACE INDX ONLINE ;
Please verify my procedure and tell me the precautions that I should take care :=)
regards,

Werner,
If this is an active databases (indexes are used),
you cannot set offline the index tablespace.you can offline it.
DAB user:
SQL>create tablespace inds datafile '/oracle/newdb/mydb/inds01.dbf' size 10m;
Tablespace created.
Scott user:
SQL>create table t2 (col1 date, id number) tablespace users;
Table created.
SQL>create index t2_ind on t2(id) tablespace inds;
Index created.
SQL>insert into t2 values (sysdate,1);
1 row created.
SQL>insert into t2 values (sysdate,2);
1 row created.
SQL>insert into t2 values (sysdate,10);
1 row created.
DBA user:
SQL>select segment_name,segment_type,tablespace_name
  2  from dba_segments
  3  where owner='SCOTT' and segment_name like 'T2%';
SEGMENT_NAME                   SEGMENT_TYPE       TABLESPACE_NAME
T2                             TABLE              USERS
T2_IND                         INDEX              INDS
SQL>alter tablespace inds offline;
Tablespace altered.
SQL>!mv /oracle/newdb/mydb/inds01.dbf /oracle/newdb/mydb/inds0001.dbf
SQL>alter tablespace inds rename datafile '/oracle/newdb/mydb/inds01.dbf' to
  2  '/oracle/newdb/mydb/inds0001.dbf';
Tablespace altered.
SQL>alter tablespace inds online;
Tablespace altered.
scott user:
SQL>insert into t2 values (sysdate,20);
1 row created.
SQL>
SQL>select * from t2;
COL1              ID
22-NOV-07          1
22-NOV-07          2
22-NOV-07         10
22-NOV-07         20
SQL>commit;
Commit complete.

Similar Messages

  • How to move Tablespace from One disk group to another disk group in RAC

    Hi All,
    I have 11gR2 RAC env on Linux.
    As ofnow I have problem with disk group. I have 3 disk group which is almost full - 98%. I have added one NEW disk group and want to move some of the Tablespace(TBS) from OLD disk group to NEW diskgroup and make some free space in OLD disk group.
    Can any one suggest me how to move TBS from one disk group to another disk grup without shutting down the instance.
    DB is in Noarchive mode.
    Thanks...

    user12039625 wrote:
    Hi Helios,
    Thanks for doc id but I am looking for noarchive mode solution. becaues I got ORA-
    "ORA-01145: offline immediate disallowed unless media recovery enabled " when run alter database datafile '...' offline.
    Hence I am trying something and findout below steps but not sure how useful it is:
    1- put tablespace offine
    2- Copy the file to new diskgroup using Either RMAN or DBMS_FILE_TRANSFER.
    3- Rename the file to point to new location.
    4- Recover the file.
    5- Bring the file online.
    I had move 240M TBS from OLE to NEW.
    These steps run successfully so I think this is valid for noarchive mode.Hence want to confirm..so inform me please.
    Thanks :)I have doubt in my mind:
    1. You database is in noarchivelog mode
    2. You're taking tablespace offline
    3. Suppose you're moving a file of size 10GB(or any larger filesize) to another disk group
    4. Now after moving the file, you're trying to bring the tablespace online............NOW
    tablespace will need recovery. if the required data is inside the SGA then it is ok. But if the data has been flushed, then?
    if step 2 and 3 has taken significant time, then most probably you'll not be able to bring that tablespace online.
    Regards,
    S.K.

  • Can I move Array from one Xserve RAID to another and keep the data

    I'd like to move a set of disk with an existing Array from one Xserve RAID to another. Can I simply shutdown both Xserve RAIDs and move the disk over, assuming I put the disk back in the same order?

    Yes, you should be able to do this.
    BE SURE YOU HAVE A BACKUP FIRST.

  • How to move phones from one CUCM server to another?

    How easy is it to migrate IP phones from one CUCM server to another?
    The situation is this:
    A vessel currently sitting in dry dock has 14 IP phones onboard which currently register with a CUCM server half way round the world (literally). As you can imagine there is quite a fair amount of delay for the signal processing, not to mention the connectivity being over a VSAT link. This being a temporary solution.
    A CUCM server has been configured and installed on the vessel with all the relevant partitions, route patterns, trunks etc. The phones have also been added to the new server ready for migration. The only real thing that will be different when the phones are migrated is the Directory Number on each phone. Both CUCM servers are running software version 7.1.3
    The phones currently pick up their local IP addresses via a local DHCP server which assigns 150 TFTP Server IP Address for the remote CUCM server. Is changing the the TFTP Server IP address to the local CUCM server enough to have the phones register with the local server.
    This is not something I've tried before so would appreciate feedback or any comments that may indicate anything I missed along the way.
    Thanks,
    Ric

    Hi Ricardo,
    On the DHCP scope created for the voice vlan change the Option 150(TFTP Server IP address) to the new CUCM and remove/delete the remote CUCM IP address just to ensure that phones once after registering to the new CUCM will not fetch any config from the remote CUCM as the DN's of the phones are changed on the new CUCM please ensure this.
    Apart from this i dont see any challenges as the firmware of the IP Phones will also remain same as CUCM version is same.
    Hope that helps.
    Regards
    Najaf

  • How to move focus from one JTree node to another one and then back again?

    Hi all!
    Say I have a very simple JTree
    package main;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextField;
    import javax.swing.JTree;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultMutableTreeNode;
    public class SelectableTree extends JFrame implements TreeSelectionListener {
        public static void main(String[] args) {
            new SelectableTree();
        private JTree tree;
        private JTextField currentSelectionField;
        public SelectableTree() {
            super("JTree Selections");
            addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent event) {
                    System.exit(0);
            Container content = getContentPane();
            DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
            DefaultMutableTreeNode child;
            DefaultMutableTreeNode grandChild;
            for (int childIndex = 1; childIndex < 4; childIndex++) {
                child = new DefaultMutableTreeNode("Child " + childIndex);
                root.add(child);
                for (int grandChildIndex = 1; grandChildIndex < 4; grandChildIndex++) {
                    grandChild = new DefaultMutableTreeNode("Grandchild "
                            + childIndex + "." + grandChildIndex);
                    child.add(grandChild);
            tree = new JTree(root);
            tree.addTreeSelectionListener(this);
            content.add(new JScrollPane(tree), BorderLayout.CENTER);
            currentSelectionField = new JTextField("Current Selection: NONE");
            content.add(currentSelectionField, BorderLayout.SOUTH);
            setSize(250, 275);
            setVisible(true);
        public void valueChanged(TreeSelectionEvent event) {
            currentSelectionField.setText("Current Selection: "
                    + tree.getLastSelectedPathComponent().toString());
    }All I need is to move focus from currently selected node, to some other node (does not matter which one), then to "sleep" for a second and finally move it back to return selection to the previously selected node. The only question is how do I do this?

    Use a Seperate Thread to do it:
    Runnable r = new Runnable() {
        public void run() {
                   int k=tree.getSelectionRows()[0];
                   DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                                if(node.getNextSibling()!=null)
                                     tree.setSelectionRow(k+1);
                                else
                                     tree.setSelectionRow(k-1);
                                sleepe(k);
    public void sleepe(int i){
                         try{
                                Thread.sleep(1000);
                                     }catch(Exception e){
                                         e.printStackTrace();
                                  tree.setSelectionRow(i);
        }Then start this thread in a mouse click event(or any other similar),but not in TableSelectionListener because >>if the current selected row is 1 then it will execute the valueChanged method of TableSe..li. and we set the selected row to 2 then again it will execute the valueChanged method of TableSe..li.It will repeat till something,or in error.
    tree.addMouseListener( new MouseListener(){
    public void mouseClicked(MouseEvent e) {
                       new Thread(r).start();
    public  void mouseEntered(MouseEvent e) {
    public  void mouseExited(MouseEvent e) {
    public  void mousePressed(MouseEvent e)     {
    public  void mouseReleased(MouseEvent e) {
      });Note:it worked perfectly for me. So add all the above in the right place and import necessary.It will execute perfectly.

  • How to move content from one Apple ID to another?

    When I first started with Apple, I shared an Apple ID with my dad because I only had an iPod. Now that I have an iPhone, iPad, and Mac, I need to have my own Apple ID. Is there a way to move everything currently on my phone (music, sms messages, contacts, photos) to my new Apple ID? I have looked in the threads and I know this question has been asked before, but none of the answers really made complete sense to me....so dumb it down a little? Thank you in advance!

    See http://support.apple.com/kb/PH2689 and http://support.apple.com/kb/HT5902 for information on sharing calendars and photos through iCloud.  Contacts are not included in the sharing from one ID to another.

  • How to move pictures from one photo library to another

    I really don't want all my daughter's iPhone selfies in our family Photo library, but I'd like to be able to move/copy some pictures from our family vacation from her library to mine.  Can I do that with the new Photos?  Is there a setting somewhere that will automatically import her iPhone pictures into her Photos library when her phone is plugged into our family Mac?

    The app will import to the Library that's open, so make sure hers is open.
    Currently there is no way rot move between libraries except by exporting from one and importing to the other.

  • How to move data from one cell/sheet to another

    Hi - Help! I have a spreadsheet with multiple columns & rows for ordering clothes. The first column is  text of each item & it's size. What I want to do is:
    IF D15 has a number in it, I want that number and the text from A15 to populate into another sheet.
    Then I want to re-create this function in all the cells, so that if ANY cell has a number in it, that number and the text in the A column of that row shows up in the new sheet, in the corresponding cell.
    here's a screen shot of my sheet:
    Any help would be great!!
    Kim

    Hi Kim,
    I got the same error message when building the formula—it's easy to get lost in all the parentheses!
    Here's a breakdown of the formula I used.
    =IF(OFFSET(Data :: $A$1,ROW()-1,COLUMN())>0,OFFSET(Data :: $A$1,ROW()-1,COLUMN())&" - "&OFFSET(Data :: $A$1,ROW()-1,0),"")
    The overall stucture is an IF statement:
    IF(test,"Yes","No")
    IF(there is a value greater than zero in this cell's 'partner' on the main table,
      (then) copy that value here and append the label in column A of the main table, separated by a space, a dash, and a second space,
        (otherwise) put an empty text string here)
    Test: OFFSET(Data :: $A$1,ROW()-1,COLUMN())>0
    The 'partner' cell on the main table is the one on the same row and one column to the right of the cell containing the formula. (eg. for Summary::B2, the 'partner cell to be tested is Data::C2, the first data cell for Person 2)
    OFFSET(base,r,c)>0 compares the value in the cell r rows below and c columns to the right of the base cell with the value zero.
    Data::$A$1: A1 is my usual choice for the base cell, as it usually simplifies the calculations for r and c.
    ROW()-1: ROW() returns the row number of the row in which it is located. In B2, it will return 2. '-1' reduces that value to 1, the row offset necessary to get from Data::A1 to Data::b2.
    COLUMN(): COLUMN() returns the column number of the column in which it is located. In B2 it will return 2.  No adjustment is necessary, as 2 is the column offset necessary to get from Data::A1 to Data::C2
    OFFSET returns the value in Data::C2 and compares it with 0 (zero). The value (1) is greater than 0, so the test returns TRUE, and the IF function acts on the "yes" section.
    Yes: OFFSET(Data :: $A$1,ROW()-1,COLUMN())&" - "&OFFSET(Data :: $A$1,ROW()-1,0)
    This section contains two OFFSET statements.
    The first is the same as the one in Test, and returns the value in the tested cell (1).
    The second is the same, except for the third argument (c) which is fixed at 0 (zero). This returns the value in the cell in column A (zero columns to the right of A1) in the same row as the tested cell.
    The two returned values are linked by this expression: &" - "&
    "&" is the concatenation operator, which joins the values left and right of it into a text string. Here, the value returned by the first OFFSET (1) is joined to the text (space-space) contained between the double quotes, and that is joined to the value returned by the second OFFSET function (Item 1)
    No: ""
    If there is no number entered in the Data cell being tested, IF acts on the "no" section of the formula, and inserts an empty string ( "" ) in the cell containing the formula. An empty string displays as 'blank', and is the closest one can get to an 'empty' cell using a formula.
    Regarding your questions:
    "I seem to not understand what I'm supposed to put in the () and " " 's. I copied and pasted it and got the error message "the formula contains an invalid referance". DO i put certain row/cell numbers in somewhere?"
    ROW() and COLUMN() should have no argument entered between the parentheses. Each returns the row or column number of the cell containing the formula.
    The double quotes at the end of the IF statement define a text string with no text. You can put any text between them, but that text will then appear in all cells whose 'partner' cell does not contain a number greater than zero.
    The 'invalid reference' error message usually means a formula is referencing a cell that is not on the table. My guess is that your Summary table includes a copy of column A from your Data table. That would place "Person 1" in column B on both tables, and would require an adjustment of 'COLUMN()' to 'COLUMN()-1' in the first two OFFSET functions.
    Another possibility is a mismatch between the Data table name in the formula and the actual name of the Data table.
    Beyond those possibilities, I'd need to see either the document or screen shots of both tables and a copy of the actual formula as you've entered it.
    Regards,
    Barry

  • How to move image from one hard drive to another - T41

    Hi All
    I have a T41 which has a 30GB hard drive, over the time I have installed quite a few programs which I don't have the cd's for to reinstall. Now that I am almost out of space I need to swap my present Hard Drive with another one. I already bought a 60GB HD for the laptop but I don't want to just swap it, what I want to do is make an image of the existing HD and past it in the new HD and then swap the HD so that I have everything from my previous HD.
    Can I do this with Ghost 2003 or maybe with anyother ghost app. Also what if I just make a backup of the registry and system state through windows backup tools then install windows XP in the new HD and then restore the restore the system state and registry from the backup. In this wall I will loose the hidden partition.
    Please advice whether I can image of the current HD and then move it to the new HD.
    Thanks in advance 

    Thanks for the responses for far, I really appriciate it.
    Ok, I have two question for two response I received:
    To infocatchjp:
    1. I didn't find any connector for "ThinkPad 2nd HDD Adapter for Ultrabay Slim".
    2. Rescue and recovey is a windows tool or built in IBM tool.
    3. Would it tranfer the program as well and also the hidden partition for the laptop.
    To stbigham:
    I went to the website for the given software and checked out its feature. My only question is would the software transfer the existing and hidden partition when it is moved to the new HD.
    thank you both for your support. Hope to hear from you soon.
    Haydes 

  • How to move photos from one hard drive to another without losing data?

    I have lightroom latest version.  I have an in-computer hard drive full of photos.  It is clogging the machine and I am running out of storage space.  To make room, I would like to transfer most photos to an outboard portable hard drive.  How do I do that without losing all the hard earned flags, stars, tweaks, and other data currently stored regarding those moved photos and confirm I can still locate them again when using Lightroom (which will remain on the main hard drve)?

    This describes the procedure: Adobe Lightroom - Find moved or missing files and folders

  • How to move objects from one transport request to another transport request

    Hi Experts,
        When I am changing the code I selected the wrong the transport request number. I want to move my objects into another transport request number in the same DEV and same client number. Could you please help to move these objects between the transport request numbers.
    Thanks,
    Chinna.

    Hi Chinna,
    If you need to change a transport request number, you can use TCODE SE80
    Click on Repository Browser tab
    Then Select the Object(s) you want to change the Transport Request number
    Right Click > Other Functions > Write Transport Entry
    After that you will need to specify other existing Transport Request number OR create a new transport request number (F8).
    Hope this is what you are looking for.
    Thanks
    Rohan

  • How to move stuff from one iCloud acct to another?

    Because of all the goofy apple ID issues yesterday, I ended up putting my stuff into the wrong iCloud account.  I did eventually get an email for my main Apple ID account but contacts, etc were wiped off my devices because I had to sign out of the other iCloud account, which has all my contacts in it.  Is there a way to get my contacts out of the other iCloud account?  Is there an online sign-in somewhere?

    Thanks but I don't think that will work.  It wants me to tie the account to an iOS5 device first.  This is what I see after trying to login: http://d.pr/YOwF.  
    Does this mean those contacts are gone forever?  I wouldn't be surprised after yesterday's chaos.

  • Best way to move redo log from one disk group to another in ASM?

    Hi All,
    Our db is 10.2.0.3 RAC db. And database servers are window 2003 server.
    We need to move more than 50 redo logs (some are regular and some are standby) which are not redundant from one disk group to another. Say we need to move from disk group 1 to 2. Here are the options we are thinking about but not sure which one is the best from easiness and safety prospective.
    Thank you very much for your help in advance.
    Shirley
    Option 1:
    1)     shutdown immediate
    2)     copy log files from disk group 1 to disk group2 using RMAN (need to research on this)
    3)     startup mount
    4)     alter database rename file ….
    5)     Open database open
    6)     delete the redo files from disk group 1 in ASM (how?)
    Option 2:
    1)     create a set of redo log groups in disk group 2
    2)     drop the redo log groups in disk group 1 when they are inactive and have been archived
    3)     delete the redo files associated with those dropped groups from disk group 1 (how?) (According to Oracle menu: when you drop the redo log group the operating system files are not deleted and you need to manually delete those files)
    Option 3:
    1)     create a set of redo members in disk group 2 for each redo log group in disk group 1
    2)     drop the redo log memebers in disk group 1
    3)     delete the redo files from disk group 1 associated with the dropped members

    Absolutely not, they are not even remotely similar concepts.
    OMF: Oracle Managed Files. It is an RDMBS feature, no matter what your storage technology is, Oracle will take care of file naming and location, you only have to define the size of a file, and in the case of a tablespace on an OMF DB Configuration you only need to issue a command similar to this:
    CREATE TABLESPACE <TSName>; So the OMF environment creates an autoextensible datafile at the predefined location with 100M by default as its initial size.
    On ASM it should only be required to specify '+DGroupName' as the datafile or redo log file argument so it can be fully managed by ASM.
    EMC. http://www.emc.com No further commens on it.
    ~ Madrid
    http://hrivera99.blogspot.com

  • How can I copy datafile (from one Raw device) to another Raw device ???

    can anybody tell me how do i copy/move one datafile from one raw device to another raw device.... ?
    I am having AIX 5.3 with SAN.
    Pls. help me...
    regards,
    Star Nirav

    Hello Hans,
    Currently I am using via RMAN... Want to know which one help me....? Is there any size limitation via dd command ? Can I use iocopy instead of dd in AIX ?
    man dd

  • How to move table from one tablespace to other tablespace?

    how to move table from one tablespace to other tablespace?

    887274 wrote:
    how to move table from one tablespace to other tablespace?
    alter table <table_name> move  tablespace <new_tablespace_name>;
    Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
    SQL> create table ttt( ID NUMBER PRimary key);
    Table created.
    SQL> insert into ttt values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL> alter table ttt move tablespace users;
    Table altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 UNUSABLE
    SQL> alter index SYS_C0010863 rebuild tablespace users online;
    Index altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL>

Maybe you are looking for

  • How to manage only 1 library in a network

    Hi, I'm using both a iMac and a MacBook. I want to manage only 1 iTunes Library. I have put my library into Timecapsule because I have lots of room. TC is also my wireless router. However, when I play music on my computer, I got music timeouts (sound

  • Error during creation of sales order

    while creating a sales order Pricing error, mandatory condition papu is missing... when i am entering then it shows condition records for condition type papu can only be entered via agreement...pls solve the problem....

  • Brand new superdrive not working w brand new Mac Book Air

    Hi, just came home from Apple Store today with new computer and superdrive, which is not showing up when plugged in. When I put a CD in it reads it for a few seconds then spits it out. I am on the road so getting to an Apple Store will not be easy fo

  • Migration from BPC 7.5 to BPC 10

    Dear BPC Friends As you know the end of mainstream maintenance for the version SAP BPC 7.5 MS  is 31.03.2016. Which will be the risk involved if we don't upgrade? Because my company has been running a project to implement SAP ECC, SAP BW and SAP BO (

  • How to select a node in a JTree by name

    I have a JTree in my program. I want to programmatically set one of these nodes selected by the name of the node. I do not know how to do this. I read the "How to use trees", but no help Thanks!