| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: replicating an instance
0. "alter database backup controlfile to trace". Find and rename this
   file to something significant like "rename_db.sql".
> 1. Shut down the instance
> 2. Copy all data files to the new locations
2.1 Copy rename_db.sql to new location
> 3. Change the DB_NAME, dump directories, and redo log paths in the =
init.ora file
3.1 modify rename_db.sql to reflect new locations of data files, control =
files, etc.
    also change CREATE CONTROLFILE REUSE DATABASE "OLD_SID"
    to          CREATE CONTROLFILE REUSE SET DATABASE "NEW_SID" =
RESETLOGS
    in rename_db.sql
> 4. startup nomount. Rename the redo logs
     "Rename the redo logs?"  Never done that!
4.1 Startup nomount.  @rename_db
> 5. Create control file
     See step 4.1
> 6. Open database.
     See step 4.1.  rename_db.sql includes the lines...
        # Database can now be opened normally.
        ALTER DATABASE OPEN;
     ...which you should modify to '...OPEN RESETLOGS'.
HTH,
Mike
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Sun Feb 01 2004 - 12:36:26 CST
![]()  | 
![]()  |