Restore full backup of another machine on a new machine
1 to remember the various directory structure and dbid of the original machine
2 creating the corresponding directory structure on the new machine note user permissions
/u01/oracle/admin/dbname/pfile bdump udump dpdump cdump
/oradata/dbname/rman_backup Flash_recover_sea Archivelog
3 Put the backup set file in the original backup directory of the new machine
3 Rman connection to default
]$ Export Oracle_sid=surgesms
]$./rman Target/
Connected to target database (not started)
3 startup Nomount start default SPFile
rman> startup Nomount;
Startup failed:ora-01078:failure in processing system parameters
Lrm-00109:could not open parameter file '/u01/oracle/product/10.2.0/dbs/initsurgesms.ora '
Starting Oracle instance without parameter file for Retrival of SPFile
Oracle instance started
Total System Global area 159383552 bytes
Fixed Size 1218244 bytes
Variable Size 58722620 bytes
Database buffers 92274688 bytes
Redo buffers 7168000 bytes
4 Restore SPFile files and control files
Rman> set dbid 4223770157;
rman> restore SPFile from '/oradata/{db_name}/rman_backup/full.bak ';
rman> restore Controlfile from '/oradata/{db_name}/rman_backup/full.bak ';
5 exiting Rman and then back into Rman
rman> shutdown
Rman> EXIT
bin]$./rman Target/
Rman> Startup Mount
6 See if the control file is used
Rman> Show All;
Using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY to redundancy 1; # Default
CONFIGURE BACKUP optimization on;
CONFIGURE DEFAULT DEVICE TYPE to DISK; # Default
CONFIGURE Controlfile autobackup off; # Default
CONFIGURE controlfile autobackup FORMAT for DEVICE TYPE DISK to '%F '; # Default
CONFIGURE DEVICE type DISK PARALLELISM 1 BACKUP type to backupset; # Default
CONFIGURE datafile BACKUP copies for DEVICE TYPE DISK to 1; # Default
CONFIGURE Archivelog BACKUP copies for DEVICE TYPE DISK to 1; # Default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/oradata/{db_name}/rman_backup/full_%d_%s_%t_%t.bak ';
CONFIGURE maxsetsize to unlimited; # Default
CONFIGURE encryption for DATABASE off; # Default
CONFIGURE encryption algorithm ' AES128 '; # Default
CONFIGURE archivelog deletion POLICY to NONE; # Default
CONFIGURE SNAPSHOT controlfile NAME to '/u01/oracle/product/10.2.0/dbs/snapcf_{db_name}.f '; # Default
7 Restoring a Database
rman> Restore Database;
8 Restoring the Database
rman> Recover Database
9 Open the Database
ALTER DATABASE open Resetlog