Example of full database restore and recovery
To perform a full database restore and recovery, you also need to restore and apply
all the archive logs. To perform a full database restore and recovery:
1.
Log in to the Oracle RMAN:
• On Windows: ORACLE_HOME\bin\rman target sys/manager@PROD
catalog rman/rman@CATAL
• On UNIX: ORACLE_HOME/bin/rman target sys/manager@PROD
catalog rman/rman@CATAL
2.
Start the full database restore and recovery:
For a non-ZDB or ZDB backup set session:
run{
allocate channel 'dev1' type 'sbt_tape' parms
'SBT_LIBRARY=/opt/omni/lib/libob2oracle8.so,
ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=DB_NAME)';
restore database;
recover database;
sql 'alter database open';
release channel 'dev1';
}
For a ZDB proxy-copy session:
run{
allocate channel 'dev1' type 'sbt_tape' parms
'SBT_LIBRARY=/opt/omni/lib/libob2oracle8.so,
ENV=(OB2BARTYPE=Oracle8,OB2PROXYCOPY=1, OB2APPNAME=DB_NAME)';
restore database;
recover database;
sql 'alter database open';
release channel 'dev1';
}
You can also save the script into a file and perform a full database restore using the
saved files. The procedure in such cases is as follows:
1.
Create a file restore_database in the /var/opt/omni/tmp (UNIX systems)
or Data_Protector_home\tmp directory.
126
Data Protector Oracle ZDB integration