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

Home -> Community -> Usenet -> c.d.o.server -> Re: 10gR2 (10g Release 2) RMAN Duplicate database which has tempfiles?

Re: 10gR2 (10g Release 2) RMAN Duplicate database which has tempfiles?

From: Snewber <snew_at_snew.com>
Date: Thu, 03 Nov 2005 15:11:37 +1000
Message-ID: <dkc669$2lo$1@bunyip2.cc.uq.edu.au>


Yeah, that is what I thought as well, although the duplicate command complicates it. I don't do the switch the command at all and all the datafiles are fine, however, the tempfiles don't work as I have explained. To do the switch command, you must have the database mounted, but to duplicate the database you must have the database in UNMOUNT. So, I haven't been able to do it. Hopefully someone will be able to point me in the right direction?

yong321_at_yahoo.com wrote:
> Snewber wrote:

>> run {
>>    set until time = '02-NOV-2005 10:26:36';
>>    set newname for tempfile 1 to '/a01/o/DUP/temp.dbf';
>>    set newname for datafile 1 to '/a01/o/DUP/system.dbf';
>>    set newname for datafile 2 to '/a01/o/DUP/undo.dbf';
>>    set newname for datafile 3 to '/a01/o/DUP/sysaux.dbf';
>>    duplicate target database to DUP
>>    LOGFILE
>>      GROUP 1 ('/a04/oradata/DUP/redo_01a.log') SIZE 100M,
>>      GROUP 2 ('/a04/oradata/DUP/redo_02a.log') SIZE 100M;
>> }

>
> Don't you need the switch commands between your last "set newname" and
> "duplicate"?
>
> switch datafile all;
> switch tempfile all;
>
> The "switch tempfile all" is new in 10gR2.
>
> Yong Huang
>
Received on Wed Nov 02 2005 - 23:11:37 CST

Original text of this message

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