Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g571Ain01660
 for <oracle-l@naude.co.za>; Thu, 6 Jun 2002 21:10:44 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id KAA50830;
 Thu, 6 Jun 2002 10:04:57 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 004765B9; Thu, 06 Jun 2002 09:28:30 -0800
Message-ID: <F001.004765B9.20020606092830@fatcity.com>
Date: Thu, 06 Jun 2002 09:28:30 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Ramon E. Estevez" <com.banilejas@codetel.net.do>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Ramon E. Estevez" <com.banilejas@codetel.net.do>
Subject: Re: How to move 200 GB db from prod to dev?
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----=_NextPart_000_027B_01C20D54.611F4B50"
------=_NextPart_000_027B_01C20D54.611F4B50
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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=20
     also copy the redo logs files and archives=20

4-) Modify the controlfile with the new path of the datafiles y redo =
logs files,
     remove the REUSE clause, the RECOVER command,=20
     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=20
            ('/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=20

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 -----=20
  From: Daiminger, Helmut=20
  To: Multiple recipients of list ORACLE-L=20
  Sent: Thursday, June 06, 2002 9:27 AM
  Subject: How to move 200 GB db from prod to dev?


  Hi!=20

  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=3DPCLDB1 =3D> e.g. /u02/oradata/PCLDB1/system01.dbf=20
  Development: SID=3DROLAND =3D> e.g. /u02/oradata/ROLAND/system01.dbf=20

  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...=20

  Any ideas?=20

  This is 8.1.7 on Sun Solaris.=20

  Thanks,=20
  Helmut=20




------=_NextPart_000_027B_01C20D54.611F4B50
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>How to move 200 GB db from prod to dev?</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>Helmut,</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>I have&nbsp; just done it right this=20
morning.&nbsp; Not that big but worked.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Pasos para Clonar Bases de =
Datos</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>1-) Take a cold backup of the Origen =
DB-=20
Preferiblemente frio</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>2-) Take a backup of the controlfile =
of the=20
origin&nbsp;DB</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT><FONT face=3DVerdana=20
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>3-) Copy all the&nbsp;datafiles from =
the origin=20
DB to the copy DB.&nbsp; If the&nbsp;backup taken is=20
hot&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; also copy the redo logs files and =
archives=20
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>4-) Modify the controlfile with the =
new path of=20
the&nbsp;datafiles y redo logs files,</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;remove the=20
<STRONG>REUSE</STRONG> clause, the&nbsp;<STRONG>RECOVER</STRONG> =
command,=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp; add the&nbsp;<STRONG>RESETLOGS</STRONG> to =
the=20
<STRONG>ALTER DATABASE OPEN</STRONG> command.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>The controlfile should be that =
way.</DIV>
<DIV><BR>---<BR>------&gt; El Archivo debe quedar de esta=20
manera<BR>---<BR>&nbsp;&nbsp;&nbsp; STARTUP =
NOMOUNT<BR>&nbsp;&nbsp;&nbsp; CREATE=20
CONTROLFILE<BR>&nbsp;&nbsp;&nbsp; SET DATABASE "new clone=20
name"&nbsp;NOARCHIVELOG<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
MAXLOGFILES 255<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
MAXLOGMEMBERS=20
5<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXDATAFILES=20
1022<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXINSTANCES=20
5<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXLOGHISTORY=20
100<BR>&nbsp;&nbsp;&nbsp; =
LOGFILE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
GROUP 1 =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
('/u01/oradata/redo01a.log',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
'/u01/oradata/redo01b.log') SIZE=20
10M,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GROUP=20
2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
('/u01/oradata/redo02a.log',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
'/u01/oradata/redo02b.log') SIZE=20
10M,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GROUP=20
3<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
('/u01/oradata/redo03a.log',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
'/u01/oradata/redo03b.log') SIZE 10M<BR>&nbsp;&nbsp;&nbsp;=20
RESETLOGS<BR>&nbsp;&nbsp;&nbsp;=20
DATAFILE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
'/u03/oradata/data01.dbf'=20
SIZE 300M,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
'/u03/oradata/data02.dbf' SIZE=20
300M,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
'/u03/oradata/data03.dbf'=20
SIZE 300M,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
'/u03/oradata/data04.dbf' SIZE 300M;<BR>---<BR>---<BR>&nbsp;&nbsp;&nbsp; =
Save=20
this file with <STRONG>.sql</STRONG> extension </FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT><FONT face=3DVerdana=20
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>6-) Connect to the clone DB with =
sysdba=20
privileges</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; and execute =
the=20
script</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT><FONT face=3DVerdana=20
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>7-) Mount and open the y abrir la BD =
con=20
Resetlogs<BR>&nbsp;&nbsp;&nbsp; ALTER DATABASE =
MOUNT;<BR>&nbsp;&nbsp;&nbsp;=20
ALTER DATABASE OPEN RESETLOGS;</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana=20
size=3D2>---------------------------------------------------</FONT></DIV>=

<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Think doesn't omitted something =
translating from=20
spanish.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Luck,</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Ramon</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2><BR></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3DHelmut.Daiminger@KirchGruppe.de=20
  href=3D"mailto:Helmut.Daiminger@KirchGruppe.de">Daiminger, Helmut</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DORACLE-L@fatcity.com=20
  href=3D"mailto:ORACLE-L@fatcity.com">Multiple recipients of list =
ORACLE-L</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, June 06, 2002 =
9:27=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> How to move 200 GB db =
from prod=20
  to dev?</DIV>
  <DIV><BR></DIV>
  <P><FONT size=3D2>Hi!</FONT> </P>
  <P><FONT size=3D2>We are supposed to clone our production database =
onto a new=20
  development box (both boxes are Sun Solaris). The db is about 200 GB =
in=20
  size.</FONT></P>
  <P><FONT size=3D2>What would be the best way to achieve this? Simply =
copying=20
  over the files won't work, since the instance names are =
different:</FONT></P>
  <P><FONT size=3D2>Production:&nbsp; SID=3DPCLDB1 =3D&gt; e.g.=20
  /u02/oradata/PCLDB1/system01.dbf</FONT> <BR><FONT =
size=3D2>Development:=20
  SID=3DROLAND =3D&gt; e.g. /u02/oradata/ROLAND/system01.dbf</FONT> </P>
  <P><FONT size=3D2>So would export/import the entire db be the only =
way? (But=20
  writing out dump file that big should be a little disk space=20
  problem...)</FONT></P>
  <P><FONT size=3D2>Renaming all the datafiles (approx. 100) would be =
kind of=20
  annoying...</FONT> </P>
  <P><FONT size=3D2>Any ideas?</FONT> </P>
  <P><FONT size=3D2>This is 8.1.7 on Sun Solaris.</FONT> </P>
  <P><FONT size=3D2>Thanks,</FONT> <BR><FONT size=3D2>Helmut</FONT>=20
</P><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_027B_01C20D54.611F4B50--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ramon E. Estevez
  INET: com.banilejas@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@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).

