Title: How to move 200 GB db from prod to dev?
Helmut,
 
I have  just done it right this morning.  Not that big but worked.
 
Pasos para Clonar Bases de Datos
 
1-) Take a cold backup of the Origen DB- Preferiblemente frio
 
2-) Take a backup of the controlfile of the origin DB
 
3-) Copy all the datafiles from the origin DB to the copy DB.  If the backup taken is hot 
     also copy the redo logs files and archives
 
4-) Modify the controlfile with the new path of the datafiles y redo logs files,
     remove the REUSE clause, the RECOVER command,
     add the RESETLOGS to the ALTER DATABASE OPEN command.
 
The controlfile should be that way.

---
------> El Archivo debe quedar de esta manera
---
    STARTUP NOMOUNT
    CREATE CONTROLFILE
    SET DATABASE "new clone name" NOARCHIVELOG
        MAXLOGFILES 255
        MAXLOGMEMBERS 5
        MAXDATAFILES 1022
        MAXINSTANCES 5
        MAXLOGHISTORY 100
    LOGFILE
        GROUP 1
            ('/u01/oradata/redo01a.log',
             '/u01/oradata/redo01b.log') SIZE 10M,
        GROUP 2
            ('/u01/oradata/redo02a.log',
             '/u01/oradata/redo02b.log') SIZE 10M,
        GROUP 3
            ('/u01/oradata/redo03a.log',
             '/u01/oradata/redo03b.log') SIZE 10M
    RESETLOGS
    DATAFILE
        '/u03/oradata/data01.dbf' SIZE 300M,
        '/u03/oradata/data02.dbf' SIZE 300M,
        '/u03/oradata/data03.dbf' SIZE 300M,
        '/u03/oradata/data04.dbf' SIZE 300M;
---
---
    Save this file with .sql extension
 
6-) Connect to the clone DB with sysdba privileges
     and execute the script
 
7-) Mount and open the y abrir la BD con Resetlogs
    ALTER DATABASE MOUNT;
    ALTER DATABASE OPEN RESETLOGS;
 
---------------------------------------------------
 
Think doesn't omitted something translating from spanish.
 
Luck,
 
Ramon
 

 
----- Original Message -----
Sent: Thursday, June 06, 2002 9:27 AM
Subject: How to move 200 GB db from prod to dev?

Hi!

We are supposed to clone our production database onto a new development box (both boxes are Sun Solaris). The db is about 200 GB in size.

What would be the best way to achieve this? Simply copying over the files won't work, since the instance names are different:

Production:  SID=PCLDB1 => e.g. /u02/oradata/PCLDB1/system01.dbf
Development: SID=ROLAND => e.g. /u02/oradata/ROLAND/system01.dbf

So would export/import the entire db be the only way? (But writing out dump file that big should be a little disk space problem...)

Renaming all the datafiles (approx. 100) would be kind of annoying...

Any ideas?

This is 8.1.7 on Sun Solaris.

Thanks,
Helmut


Reply via email to