Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Moving database from one machine to another
I have a cold backup in the form of a tar archive on tape from one database
that I want to restore onto another machine.
Here is what I was thinking of doing:
pax -r -f /dev/rmt/0 -s,old1,new1,p -s,old2,new2,p ... -s,oldN,newN,p old1 old2 ... oldN
where oldN is the old FULL pathname of each database file and newN is the new place I want it written to.
This will move all the files of the old database to the new OFA compliant locations I want.
2. Change the init.ora file to point to the new controlfile locations
3. sqlplus /nolog
connect internal
startup nomount
create controlfile set database NEWSID
logfile ....
datafile ....
noresetlogs;
This will recreate the controlfile pointing to all the new file locations.
4. alter database open;
Any problems with this?
Any comments and tips greatly appreciated.
Thanks Received on Thu Mar 07 2002 - 19:53:34 CST
![]() |
![]() |