% rman nocatalog
RMAN> connect target sys/pwd@xxx
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=ORACLE8,OB2APPNAME=oss)';
allocate channel 'dev_1' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=ORACLE8,OB2APPNAME=oss)';
sql "alter database mount";
set until time = 'date_string';
restore database;
recover database;
sql "alter database open resetlogs";
sql "alter database open";
release channel 'dev_0';
release channel 'dev_1';
}
We got several errors during the compilation of restore like: no backup or copy of datafile xxx found to restore.
Requires Free Membership to View
That is most likely because the backup of the control file that you are using doesn't contain this information. It would be best to use a current control file, not a backup control file for this operation.
If you have the source database still available, another method you may want to try is to duplicate the database with RMAN. The following chapter in the docs has all of the details: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmdupdb.htm#441628
This was first published in March 2004

Join the conversationComment
Share
Comments
Results
Contribute to the conversation