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: Duplicating 8.1.7 database to a scn

RE: Duplicating 8.1.7 database to a scn

From: Ruth Gramolini <rgramolini_at_tax.state.vt.us>
Date: Thu, 1 Sep 2005 16:06:45 -0400
Message-ID: <00a501c5af30$ad70f7c0$6759000a@vttaxnet.tax.state.vt.us>


Pete,

To do a point in time recovery, you need to set you NLS_DATE_FORMAN to mm-dd-yy:hh24:mi_ss in the OS before envoking rman. With the auxiliary database (clone) in nomount do a connect target..., connect auxiliary ..., connect rcvcat .. and then the first line in the run command should be set until time '09-02-2005:08:00:00'; for example.

If you want to know what scn you should use for a set scn look at v$log. or v$archived_log (specify the date you want if you want to find the scn for or you will get a huge list).

HTH,
Ruth

 -----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Peter Hitchman
Sent: Wednesday, August 31, 2005 3:26 PM To: oracle-l_at_freelists.org
Subject: Duplicating 8.1.7 database to a scn

Hi,
I need to duplicate an Oracle 8.1.7 database to a given point in time. I have seen problems when trying to do this with the set command specifying a date, but I have done it using an scn number when I got the scn number from a duplication that did a full recovery.

If I stop all transactions in the database how do I find out what scn number to use? I have it in mind to archive the current log so that all of the changes are in the redo stream, will the most recent archive log give me the scn number and if so where do I get this information from.

Thanks

Pete

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Sep 01 2005 - 15:41:52 CDT

Original text of this message

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