Example of point-in-time restore – HP A.06.11 User Manual

Page 122

Advertising
background image

2.

Start the full database restore and recovery:

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';
}

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.

2.

Start the full database restore:

If you use the recovery catalog database, run:

• On Windows: ORACLE_HOME\bin\rman target sys/manager@PROD

catalog rman/rman@CATAL

cmdfile=Data_Protector_home\tmp\restore_datafile

• On UNIX: ORACLE_HOME/bin/rman target sys/manager@PROD

catalog rman/rman@CATAL

cmdfile=/var/opt/omni/tmp/restore_datafile

If you do not use the recovery catalog database, run:

• On Windows: ORACLE_HOME\bin\rman target sys/manager@PROD

nocatalog

cmdfile=Data_Protector_home\tmp\restore_datafile

• On UNIX: ORACLE_HOME/bin/rman target sys/manager@PROD

nocatalog cmdfile=/var/opt/omni/tmp/restore_datafile

Example of point-in-time restore

To perform a point-in-time restore, you also need to restore and apply the archive
logs to the specified point in time. To perform a point-in-time database restore and
recovery:

Integrating Oracle and Data Protector

122

Advertising