Move datafile

Oracle 11.2.0.1
AIX 5.3
How can I move system, undo, user, sysaux and tools datafile?
any extra precaution require before moving this file?
please provide the steps
Thanks,
Vishal

Hi,
General procedure or steps you can follow as below :-
Login to SQLPlus.
Connect as SYS DBA with CONNECT / AS SYSDBA command.
Shutdown the database instance with SHUTDOWN command.
Rename or/and move the datafiles at operating system level.
Start Oracle database in mount state with STARTUP MOUNT command.
Modify the name or location of datafiles in Oracle data dictionary using following command syntax:
ALTER DATABASE RENAME FILE ‘<fully qualified path to original data file name>’ TO ‘<new or original fully qualified path to new or original data file name>’;
Open Oracle database instance completely with ALTER DATABASE OPEN command.
Perhaps, if you elaborate more than you can find other feasible solutions, instead of above steps.
kindly let us know the belwo details
Your requirement
Oracle Version you are working with
Reason for chaning things.
- Pavan Kumar N
ORACLe 9i/10g - OCP
RHCE - Certified Enterprize Linux 5.4

Similar Messages

  • 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.

  • Move datafile on Primary not replicted on Standby Database

    I'm using an automated script to move datafiles between partitions on my standby database, this ensures that only recent data is on the faster fibre channel disks, and older data is on SATA disks.
    The commands it uses:
    1. alter tablepspace offline;
    2. unix command to mv data file from one partition to another.
    3. alter tablepspace <tbname> rename datafile ' old datafile path' to 'new datafile path';
    4. alter tablepspace online;
    This works fine on the primary database, but the standby is not moving the datafiles.
    Any help as to why this is happening would be much appreciated.
    Thanks.

    And why would it be replicated? If there already is the same file on the standby, redo entries can be applied to it. Renaming of data files is
    not an operation that would be visible in redo logs, it is visible only in the control file(s). Standy databases apply redo logs from the primary
    database, period. That is all they do. If the change is not visible in the redo logs, it isn't applied to standby. If a file is created, dropped or
    changed in size, that is communicated to the standby which reacts appropriately if the STANDBY_FILE_MANAGEMENT parameter is set to AUTO on the standby side. Redo entry contains the following information:
    <ol><li>     SCN for the change.</li>
    <li>     The file number to which the change was made</li>
    <li>The block number of the changed block.</li>
    <li>     The offset and the size of the changed information.</li>
    <li>     The changed information itself.</li>
    </ol>
    When the standby receives the archived log file and parses that information, it applies the information to the corresponding file on
    the standby side, regardless of the file name. If the file 123 exists and contains the block 9876543210, redo entry will be applied
    and all will be well. There is absolutely no way by which the standby database would be able to discern the new file name. There is
    absolutely no need for that. To change the file name on the standby side, do the following on the standby side:
    <ol><li>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;</li>
    <li>ALTER DATABASE DATAFILE 123 OFFLINE;</li>
    <li>ALTER DATABASE RENAME FILE 123 TO '/my/db/path/new_file.dbf';</li>
    <li>ALTER DATABASE DATAFILE 123 ONLINE;</li>
    <li>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;</li>
    </ol>

  • Need help on transportable tablespace, after convert and move datafile over

    I need help on transportable tablespace, after convert and move datafile over the target server, How do I plug them in to the ASM instance?
    And How do I start the database ? what controlfile I should use?
    Thanks.

    I got error like this:
    RMAN> copy datafile '/oracle_backup/stage/ar.269.775942363' to '+RE_DAT';
    Starting backup at 29-MAY-12
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 05/29/2012 17:46:21
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /oracle_backup/stage/ar.269.775942363
    How to deal with this?
    I deleted all the current target tablespaces including contents. Do I have to do anything to make the database recognize those converted datafiles?

  • Move datafile from asm datafile database to non asm database

    Hi Nice morning all DBA Guys, I want move datafile from asm database datafile to non asm configurated database. Hoe to move this?
    Datafiles like this
    +DATA/saico/datafile/users.259.631612183
    +DATA/saico/datafile/DBA.XXX.XXXXXXXXX
    Regards
    S.Azar

    The all files movement of asm to non-asm and vice-versa is given in document id 252219.1 on metalink. Please look at the same. In nut shell you have to do the following:
    1. Start your database with ASM.
    2. Create pfile from spfile.
    3. Edit pfile to reflect controlfile name in file system location.
    4. SQL> Startup nomount.
    5. Use RMAN to copy the control file from ASM to NON-ASM.
    RMAN> RESTORE CONTROLFILE FROM '<filename_of_old_control_file>';
    6. SQL> alter database mount;
    7. Use RMAN to copy the database from ASM to NON-ASM.
    RMAN> BACKUP AS COPY DATABASE format '/u01/oradata/nonasmdb/datafile/%U';
    8. From RMAN
    RMAN> SWITCH DATABASE TO COPY;
    Regards.

  • I cannot to move datafiles on windows

    Hi all,
    I'm using Oracle 10.2.0.3 on Windows 2000 Professional.
    I need to move datafiles to other disk to save space.
    So I take the tablespace to offline. But when I try to
    move a datafile, I got the windows message: File in use.
    Why I got this if the tablespace is offline?
    The database is in archivelog mode and it is open.
    Thank you very much!!!!

    Very strange.
    I take the tablespace to offline, I copy the datafile to other location, I perform the alter database rename file,
    I take the tablespace to online, but the old datafile on old disk cannot be removed because the windows returns that the file is in use. I did understand.
    The dictionary of oracle is OK, the location of datafile is OK in dictionary, but....
    Thanks again!!!

  • I would like to move datafiles to another Oracle Machine

    Dear All:
    I have two Oracle Server based on Windows XP professional.
    I would like to move datafiles to another Oracle Machine. That is, I want to move datafiles from A server to B server.
    Do you know how I can transport these datafiles and how can B server recognize table, metadata, values from datafiles?
    Please help me.
    Sincerely,

    To rodenyli:
    Version is Oracle 10gR2 (first server and second server are same).
    I already create the DB on the second server but SID is different.
    I don't understand what you are saying.
    "Is the instance name the same?"
    I didn't create any tablespace and datafile on the second server.
    For example, the datafile name of the first server is ABCD.DBF. and I want to transport the second server. but the second server doesn't have any tablespace and datafile.
    Please let me know in this case.
    Thank you,

  • Want to move datafiles, controlfiles, redolog on new ASM Disks (11gR2 RAC)

    Hi Guys,
    Setup: Two Node 11gR2 (11.2.0.1) RAC on RHEL 5.4
    Existing disks are from Old SAN & New Disks are from New SAN.
    Can I move all datafiles (+DATA), controlfiles (+CTRL), redolog (+REDO) on new ASM Disks by adding disks in is same Diskgroup & dropping older disks from existing Diskgroup taking advantage of ASM Re-balancing Feature.
    1) add required disks in the DATA Diskgroups,
    ALTER DISKGROUP DATA ADD DISK
    '/dev/oracleasm/disks/NEWDATA3' NAME NEWDATA_0003,
    '/dev/oracleasm/disks/NEWDATA4' NAME NEWDATA_0004,
    '/dev/oracleasm/disks/NEWDATA5' NAME NEWDATA_0005
    REBALANCE POWER 11;
    Check rebalance status from v$ASM_OPERATION.
    2) When rebalance completes, drop the old disks.
    ALTER DISKGROUP DATA DROP DISK
    NEWDATA_0000,
    NEWDATA_0001
    REBALANCE POWER 11;
    Check rebalance status from v$ASM_OPERATION.
    3) Do it same for Redo log groups & Controlfile Diskgroups.
    I hope, I could do this Activity, even if database is Up. is there possibility of Database block Corruption ??? (or is it necessary to perform above steps when database is down)
    Would be appreciated, your quick responses on the same.
    It's an urgent requirement. Thanks.
    Regards,
    Manish

    Manish Nashikkar wrote:
    Hi Guys,
    Setup: Two Node 11gR2 (11.2.0.1) RAC on RHEL 5.4
    Existing disks are from Old SAN & New Disks are from New SAN.
    Can I move all datafiles (+DATA), controlfiles (+CTRL), redolog (+REDO) on new ASM Disks by adding disks in is same Diskgroup & dropping older disks from existing Diskgroup taking advantage of ASM Re-balancing Feature.
    1) add required disks in the DATA Diskgroups,
    ALTER DISKGROUP DATA ADD DISK
    '/dev/oracleasm/disks/NEWDATA3' NAME NEWDATA_0003,
    '/dev/oracleasm/disks/NEWDATA4' NAME NEWDATA_0004,
    '/dev/oracleasm/disks/NEWDATA5' NAME NEWDATA_0005
    REBALANCE POWER 11;
    Check rebalance status from v$ASM_OPERATION.
    2) When rebalance completes, drop the old disks.
    ALTER DISKGROUP DATA DROP DISK
    NEWDATA_0000,
    NEWDATA_0001
    REBALANCE POWER 11;
    Check rebalance status from v$ASM_OPERATION.
    3) Do it same for Redo log groups & Controlfile Diskgroups.
    I hope, I could do this Activity, even if database is Up. is there possibility of Database block Corruption ??? (or is it necessary to perform above steps when database is down)
    Would be appreciated, your quick responses on the same.
    It's an urgent requirement. Thanks.
    Regards,
    Manish
    Hi Manish,
    Yes you can do that by adding new disk to existing diskgroup and delete old diskgroup. The good thing is this can be done online however you need to make sure the rebalance power is meet your business time, higher rebalance power is faster to rebalance to complete however it also will consume more resources
    Cheers

  • Move datafiles and logfiles (Portal 6.0 and Microsoft SQL Server 2000)

    Hello,
    I have installed EP 6.0 with KMC and TREX. The database is MS SQL Server 2000.
    The datafiles and the logfiles of the portal are respectively located in the directory "C:\Program Files\Microsoft SQL Server\MSSQL\Data" and in "C:\Program Files\Microsoft SQL Server\MSSQL\LOG".
    I want to move these files in the disk D.
    How can I do it ?
    Is the procedure described in the site http://support.microsoft.com/kb/224071 correct ?
    I thank you for your help.
    Regards,
    Anne-Marie

    Francesc,
    Microsoft Exchange Server Integration in EP6.0
    The Microsoft Exchange server (subsequently called the Exchange server) is integrated using the Microsoft Exchange server transport. This transport integrates the scheduling capabilities of Exchange Server with SAP Enterprise Portal 6.0. The following versions of Microsoft Exchange server can be integrated with the Enterprise Portal.
    · Exchange Server 5.5 SP4
    · Exchange Server 2000
    · Exchange Server 2003
    The transport uses Microsoft Collaborative Data Objects 1.2.1 (subsequently called CDO) to access data from the Exchange server.
    You can check for more details on;
    http://help.sap.com/saphelp_nw04s/helpdata/en/7a/ec015c8446d447a83776d40f31c84f/frameset.htm
    Regards,
    James

  • Move datafile from system tablespace

    How can i move system datafile in a windows? I need to put database mount?
    Tks

    •     Shutdown the db
    •     Rename/Move the datafile using the o/s command
    •     Mount the db
    •     Alter database rename file <file 1> to <file 2>
    •     Alter database open;

  • How can I move datafile copies from an Incremental Backup-not the original?

    As part of an incremental backup I recover copies of the tablespaces. These by default are stored in the disk backup location diskgroup. Is it possible to move these copies to another diskgroup/location whilst still backing up to the default disk backup location diskgroup. I know how to do it with the main datafiles but not with the copies.
    e.g.
    Current situation:
    Original Datafiles in +DATA
    Backups in +FRA
    Recovered Datafile copies in +FRA
    New setup to be:
    Original Datafiles in +DATA
    Backups in +FRA
    Recovered Datafile copies in +BACKUP
    Thanks

    Yes it's possible.
    Move the backup and then set the new location of the backup on the controlfile:
    1. Move the backup.
    2. RMAN delete old backup reference from control file:
    crosscheck backup device type disk;
    delete noprompt expired backup device type disk;3. RMAN include the new location of the backup:
    catalog start with '/path/to/your/backup/'And you're done :)

  • HOW TO MOVE DATAFILES

    Hi Folks
    I have a problem with block corruption 4 times in this month on the same datafile. My DB have ASM with 1 group, the question is:
    It's possible to move this datafile to other place in this group? or which is the best way to resolve and avoid this problem?
    Very thanks and regards,
    Wilson

    There is no interface within ASM to move files around with in the diskgroup. You can move the files to a different diskgroup.
    What version is your database software? In the 10gR1 initial release there were problems in ASM that could lead to corruptions that were supposed to have been fixed in later patchsets.

  • Oracle - Move datafiles to a new filesystem

    Hi,
    We have an ERP system running on HP-UX with Oracle database.
    To stick with SAP recommendation, the filesystems holding the datafiles should have a blocksize of 8192K. We have 5 filesystem of 2 TB for the datafiles of the production system, and 3 have a blocksize of 1024k instead of 8192k.
    The safest strategy would be to:
    - Stop SAP and DB
    - Copy the datafiles of these 3 filesystems to 3 new filesystem with a blocksize of 8192K
    - Adapt the mount points
    - Restart the DB and SAP
    The problem with this strategy is that it is very time consuming, and will need a long downtime to complete it.
    We have another strategy in mind:
    - Putting the database in backup mode
    - Copying all the datafiles (for the 5 filesystems) to new filesystems
    - Putting the database back in normal mode
    - Stopping SAP and the DB
    - Changing the mounting points to the new filesystems
    - Starting up the database and recover it (applying all the logs)
    - Starting SAP
    This should help us reducing the downtime.
    Can you advise if it is a valid strategy ? Do you have any other idea on how we could proceed ?
    Thanks in advance for your help :-)
    Antoine

    Hi Antoine,
    well from a technical point of view this is valid, but to be honest it is slow as well and it includes many manual error-prone activities. Nowadays there is no reason for not using RMAN
    The fastest and safest method (in my opinion) would be the following:
    Create the 3 new file systems
    Perform full image copy backup of corresponding data files to that file system
    Perform incremental backups (with block change tracking) and apply them to the corresponding image file copies (Rolling Forward Image Copy Backups)
    Perform the last incremental backup (with block change tracking) and apply it right before shutdown of SAP
    Shutdown SAP
    Use RMAN to switch to data file copy (in new file system)
    Use RMAN to recover data files, which should take only a few seconds to minutes depending on the load between step 4 and 5.
    Start SAP
    Regards
    Stefan

  • Move datafiles to new machine

    Hi need to mount the datafiles of a tablespace on a new machine to be able to access a table.
    Can I do this? How?
    I restored the datafiles from a backup into a new folder and wanted to mount them in a new DB to access a table inside.

    Can you be more precise as I'm new in this :)
    I have a database running, and I have this files restored from a tape
    01-01-2009 02:01 1.073.745.920 D_RFAC01.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC02.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC03.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC04.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC05.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC06.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC07.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC08.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC09.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC10.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC11.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC12.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC13.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC14.DBF
    14 File(s) 15.032.442.880 bytes
    I know that these are the datafiles of a tablespace named PK_RFAC in the old server.
    It's possible to create a tablespace and make it use this datafiles without rewriting them in the new server?

  • "Searching for movie datafile in tmpmov.mov" , what is this? HELP!

    Made a movie in iMovie and imported it to iDVD. In iDVD did all the scene selections and titles then burned it. It will skip and/or stop playing in the DVD player. Playing it on the computer I get the above error message.

    I'm not sure if this is a media issue or a content issue. Let's narrow it down a bit. Have you attempted to make a disc image to the desktop from the file menu in iDvd? Like this ....
    Click Here
    Once you have the disc image on the desktop then use apple's dvd player app. Assuming it plays as expected, then we can rule out media issues. If it plays fine then burn the image to Verbatim dvd-r at 4x or slower.

Maybe you are looking for