Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Restore From Cold backup

451321Nov 6 2008 — edited Nov 7 2008
Hi,

i did exactly the same steps as metalink note NOTE:174226.1.. which is i added below.
My problem is that when i open the database it insists taht system01.dbf needs a recovery.
and when i "alter database recover ..." it complains about the redolog and archive files.
When i followed the steps, after mounting the database i shut it down a few times and re-mount again. could that be the problem.. i dont know maybe it confuses about checkpoints etc. because i read that when you are restoring from cold backup the last log file should be same as the backup's day. could that be my problem? or any other suggestions?


Pre-requisites: The copy is between 2 machines, both have to be on the same OS
and have to have exactly the same database version installed.

1. Make sure the database you want to copy was closed with a SHUTDOWN IMMEDIATE,
SHUTDOWN NORMAL or SHUTDOWN TRANSACTIONAL.
2. Copy init.ora and control files to create instance and be able to go in
mount mode. Check the init.ora for the locations where the controlfiles have
to be, if those locations are not valid on the machine put the control files on
different places and adjust the init.ora accordingly.
3.a. Copy the datafiles (all of them).
b. Copy the redo-logfiles (all of them).
4.a. (Unix only) Set the environment variables:
ORACLE_SID - set to the database name you wish to create
ORACLE_HOME - set to full pathname of the Oracle system home directory
PATH - needs to include $ORACLE_HOME/bin
b. (NT/2000 only) Do 'set ORACLE_SID=<SID>'
Use oradim to create the service for the instance. For more information
on oradim please refer to (the part that refers to creating a new instance):
Note:68720.1 Creating a new 7.3, 8.0, 8.1 Instance/Database

5. Use servermanager (check the name to use for your version of oracle) or
sqlplus (version 9i and above) to startup the database in mount mode.
Do
CONNECT INTERNAL/<PASSWORD>
then
STARTUP MOUNT
Then do a rename of the copied datafiles if they are not in the same path as on
the other machine. For all the files that are in the result of the query:
SELECT NAME FROM V$DATAFILE;
do
ALTER DATABASE RENAME FILE '<oldfullpath>\<filename>' to <
newfullpath>\<filename>';
6. Query the datadictionary for the old location of the redolog files using:
SELECT MEMBER FROM V$LOGFILE;
If the new place is not the same as the old do:
ALTER DATABASE RENAME FILE '<oldfullpath>\<redologfilename>' to &
lt;newfullpath>\<redologfilename>';
7. Now open the database:
ALTER DATBASE OPEN;
This post has been answered by 26741 on Nov 7 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2008
Added on Nov 6 2008
15 comments
1,123 views