

Performing Disaster Recovery › Scenarios for Restoring to an Alternate Server › Restore to a Server with Different Directory Structures
Restore to a Server with Different Directory Structures
Use the following procedure to restore to an alternate server that cannot support the different directory structure.
To restore the database to a server with different directory structure
- Install the option on the target server, and add an additional Oracle database instance for the new database that you want to recover.
- Create an ORACLE instance or PWFILE if necessary, as described in the section Recover the ORCL Database in this appendix.
- In the Arcserve Backup Restore Manager, clear the Restore to original location option.
- Restore all necessary recovery files (for example, configuration files) to a new location on the target server.
- Restore the database to the target’s temporary directory (the temporary directory is where you would like to keep the files—database files, archive logs, and control files).
- Move database files and archive logs to their new location on the target server.
- Edit the INITSID.ORA to reflect your new directory structure. Because the directory structures are different from the original, the control files must be recreated.
- Start up the instance but do not mount or open the database.
- Connect to the instance.
- Execute the following command:
Startup nomount
- Issue the create control file command. For the exact syntax, see the Oracle documentation. An example might be:
create controlfile
set database TEST
logfile group 1('e:\oracle\test\redlog1a.ora') size 200K,
group 2('e:\oracle\test\redlog1b.ora') size 50K
RESETLOGS
datafile 'e:\oracle\test\systest.ora' size 10M,
'e:\oracle\test\testrollback.dbs' size 2M
maxlogfiles 50
maxlogmembers 3
maxdatafiles 200
maxinstances 6
archivelog;
Note: The user has specified the RESETLOGS and ARCHIVELOG options.
- Ensure that the control file is copied to all necessary locations and renamed with the appropriate name.
- Enter the following command:
Recover database using backup controlfile until cancel;
- When the recovery is complete, enter the following command:
Alter database open resetlogs;
This action recreates the redo logs and opens the database. If you get an error, check the previous section.
- Delete the archive logs.
Copyright © 2016 .
All rights reserved.
 
|
|