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: Q:Copy production database to Q/A or test environment

Re: Q:Copy production database to Q/A or test environment

From: Mladen Gogala <mgogala_at_allegientsystems.com>
Date: Mon, 18 Apr 2005 17:27:31 -0400
Message-ID: <42642643.5050202@allegientsystems.com>


Yury Velikanov wrote:

>Amihay,
>
>It is easy if you need to copy whole database.
>
>
>

Yup. Something like this will do it:

run {
set until scn= 4706686;
duplicate target database for standby dorecover; }

Just figure out the appropriate SCN by using "list backup of database;" which will show the appropriate checkpoint SCN and run this little script from the appropriate interpretter, with appropriate arguments and it's done.

-- 
Mladen Gogala
Oracle DBA
Ext. 121


--
http://www.freelists.org/webpage/oracle-l
Received on Mon Apr 18 2005 - 17:31:09 CDT

Original text of this message

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