Hi,
How do I restore a full database on a different node using cold backup.
I have seen one thread here which says the following....
By SReddy
Copying all the files(data/control/redo/init.ora) that constitute your 100GB database to the server you wanted and modify dbname/controlfile/archive destination parameters in init.ora and set environment variables..and start the database...in mount mode and see the locations of your files from V$control/data/logfiles and rename the file locations with new file locations. that should take care off...
My question is how do I start the database in Mount State and alter the datafile locations because I dont have the services set up on this node.
Can somebody put some more light on the setting up of the environment variable thing or point me to a thread/article which gives a step by step instructions on restoring a full cold backup on a different node.
1. backup controlfile to trace on the primary db (edit this for file locations)
2. create db on the other server
3. restore from cold backup
4. edit init.ora parameters
5. use trace backup of controlfile to create controlfile.
6. open db.
The dbf path names in the controlfiles will not be the same when restored on the other machine. You will need to recreate the controlfile esp. if the path names of the dbf are different on the target db if diff. from the source db.
Now when I run this batch file I get the following error.These get generated when the createctrl.sql is executed. Please Help.
ORA-12203: TNS:unable to connect to destination
LCC-00161: Message 161 not found; product=RDBMS80; facility=MGR
ORA-12203: TNS:unable to connect to destination
CREATE CONTROLFILE SET DATABASE "TESTSID6" RESETLOGS ARCHIVELOG
*
ORA-03114: not connected to ORACLE
BEGIN
*
ORA-03114: not connected to ORACLE
ALTER SYSTEM ARCHIVE LOG ALL
*
ORA-03114: not connected to ORACLE
ALTER DATABASE OPEN resetlogs
*
ORA-03114: not connected to ORACLE
If you have a cold backup of the database and you want to set up the DB in another DB, the best way is (as Reddy suggested)
1, copy all the files to the new Node
2, change the initSID.ora file to reflect the path of the new controlfile, back_dump, core_dump,..etc, etc..
(if you have the same path names on the target machine you dont have to do this at all)
3, startup mount ; /* make sure ORACLE_SID, ORACLE_HOME, PATH everything is set */
if you restore the files to a different directory do the following.
ALTER DATABASE RENAME FILE 'src_file' TO 'tgt_file';
You have to rename the datafiles, redofiles whatever is restored to a different path from the original machine.
note: step 2 and 3 is not needed, if you have the same file structure in the target machine and you are restoring to the same place as in the aource machine.
Start the DB. This will bring the DB to the same state when the cold backup was taken.
Bookmarks