I am attempting to clone a 9i database which exists on an AIX server.
The destination database is a test version of the source, eg. LIVEDB and TESTDB.
Effectively I want to copy LIVEDB to TESTDB on a monthly basis.
I know to copy the files, no worries.
However, I would like to obtain the controlfile, change LIVEDB to TESTDB and then carry on my merry way.
I'd use: alter database backup controlfile to trace;
but I need to be able to change (grep?) ocurrences of LIVEDB to TESTDB within it - so I need to know it's location and file name.
Any suggestions?
I tried alter database backup controlfile to '/oracle/clone/' but the file is not ASCII.
The destination database is a test version of the source, eg. LIVEDB and TESTDB.
Effectively I want to copy LIVEDB to TESTDB on a monthly basis.
I know to copy the files, no worries.
However, I would like to obtain the controlfile, change LIVEDB to TESTDB and then carry on my merry way.
I'd use: alter database backup controlfile to trace;
but I need to be able to change (grep?) ocurrences of LIVEDB to TESTDB within it - so I need to know it's location and file name.
Any suggestions?
I tried alter database backup controlfile to '/oracle/clone/' but the file is not ASCII.