IMPORTANT NOTE : Information listed below is for DP version 7.x or lower, and not cluster-aware cell manager (stand-alone CM).
omnidbrestore -- performs the restores of the Data Protector internal database (IDB)
The omnidbrestore command is used to restore the Data Protector internal database (IDB) without using the IDB, as opposed to the omnir - omnidb command which uses the IDB to retrieve the information needed for the IDB restore.
The IDB restore using the omnidbrestore command consists of four phases:
1) Stopping the Data Protector services/daemons (with the exception of the Data Protector Inet service on Windows)
2) Restore of the IDB files.
3) Roll forward of IDB transactions (if present) stored in the IDB transaction log(s) - a process called dbreplay.
Before the dbreplay is started, you are given the possibility to skip this phase by responding to a prompt.
4) Starting the Data Protector services/daemons.
Every time the backup of the IDB is started or when running omnidbinit or omnidbcheck commands or when the size of a transaction log reaches 2MB, a transaction log is created on the Cell Manager in the directory
Windows Server 2008 : Data_Protector_program_data\db40\logfiles\syslog\
other Windows systems : Data_Protector_home\db40\logfiles\syslog\
UNIX systems : /var/opt/omni/server/db40/logfiles/syslog/
The obrindex.dat file resides on the Cell Manager in the directory
Windows Server 2008 : Data_Protector_program_data\db40\logfiles\rlog
other Windows systems : Data_Protector_home\db40\logfiles\rlog
UNIX systems : /var/opt/omni/server/db40/logfiles/rlog
The obrindex.dat file is written to at every backup of the IDB and contains the Media Options, RMA Options and VRDA options and arguments needed for the restore of the IDB and the name of the transaction log created at the IDB backup time.
AUTORECOVER MODE
The autorecover mode is invoked using the -autorecover option. The omnidbrestore command
in the autorecover mode scans the obrindex.dat file for the Media Options, RMA Options
(Restore Media Agent options) and VRDA options (Volume Restore Disk Agent options) and
arguments needed for the restore. When the options and arguments are retrieved, the restore of
the IDB is performed using the retrieved options and arguments to the original location overwriting
the current files.
To start the restore of the IDB in the autorecover mode, run:
omnidbrestore -autorecover