Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

restore or create controlfile

Status
Not open for further replies.

maswien

Technical User
Sep 24, 2003
1,286
CA
I'm testing RMAN with oracle netbackup client. I deleted all the datafiles as well as the control files. Then I wasn't able to restore the database from RMAN, because the database should be in mount mode to start restore.

so I wanted to create controlfiles, it seems I can't create control files from the trace file I got from "alter database backup controlfile to trace;" because there are no datafiles any more.

Any idea ?

Thanks in advance.
 

1) Restore the backup files from tape.
2) Recover the controlfiles from the backup:

Code:
STARTUP NOMOUNT PFILE=init.ora;
RUN {
 ALLOCATE CHANNEL CH1 TYPE DISK;
 SET UNTIL SEQUENCE=1234 THREAD=1;
 RESTORE CONTROLFILE;
}
SQL ‘ALTER DATABASE MOUNT’;
...etc...
[3eyes]



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 

Thank you LKBrwnDBA!

I will give it a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top