Thursday, February 14, 2019

Configure Restoredev file - HP Data Protector (MicroFocus)


In some Scenarios restore files when you use with default backed up device if it has been changed after the backup, such cases you need to change or divert the recovery process with a new device.

ex: Oracle restore took wrong device, not that at backup time

In case such situations occur it is always worth considering the possibilities that might affect the device selection due to user activities.
Two different ways to affect restore device should be taken into account:

    a) restoredev file
    b) omnidbutil -changebdev
 

a) The common way to restore using another device is by making a file named "RestoreDev".
Path to the file: /etc/opt/omni/cell/restoredev 
   Restoring using another device
    
Data Protector supports the restore of Oracle database objects from devices other than those on which the database objects were backed up.
    Specify these devices in the
        /etc/opt/omni/server/cell/restoredev         (UNIX systems)
        <DP-HOME>\Config\server\Cell\restoredev    (Windows systems)
 
By default the is not available, hence you need to create a file with below information.
 
    file in the following format:

   "DEV 1" "DEV 2"

   where DEV 1 is the original device and DEV 2 the new device.
   On Windows systems, this file must be in the Unicode format.

more specific to the file format:

 "old_device1_name" "new_device1_name"
 "old_device2_name" "new_device2_name"
 "old_device3_name" "new_device1_name"
 "old_device4_name" "new_device2_name"


Here it was a misleading restoredev file that existed. After removing it restore took the expected device.

Keeping a restoredev file under the directory:
·         UNIX: /etc/opt/omni/server/cell
·         Windows: \Config\Server\cell
This is a plain text file containing the old and new device names separated by a space. It is referred to whenever the device is called, and the old name is replaced by the new name. 

b) Change the device information permanently in the IDB by running:
omnidbutil -changebdev FromDev ToDev [-session SessionID]

 You can also use this command for one particular session if you do not want to change it completely. For the complete usage of this command, refer to the Data Protector CLI guide.



Share this

0 Comment to "Configure Restoredev file - HP Data Protector (MicroFocus)"

Post a Comment