Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to move 200 GB db from prod to dev?

Re: How to move 200 GB db from prod to dev?

From: Ramon E. Estevez <com.banilejas_at_codetel.net.do>
Date: Thu, 06 Jun 2002 09:28:30 -0800
Message-ID: <F001.004765B9.20020606092830@fatcity.com>


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

  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

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ramon E. Estevez
  INET: com.banilejas_at_codetel.net.do

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Received on Thu Jun 06 2002 - 12:28:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US