Oracle Backup and Restore with NMDA fails with error: RMAN-00571: ========================================================= RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: Failure of allocate command on CH1 channel at 10/19/2012 01:37:21 ORA-19554: Error allocating device, device type: SBT_TAPE, device name: ORA-27211: Failed to load Media Management Library.
This error message is related to Oracle not being able to successfully load the media manager layer, in this case, the NMDA Oracle library.
You must verify a couple of things in order to resolve this issue:
$ORACLE_HOME owner, for example user "oracle"
cd $ORACLE_HOME/lib ln -s /usr/lib/libnsrora.so libobk.so
libobk.so should map to the NMDA library once the symlink is correctly created.
[oracle@ora1 ~]$ cd $ORACLE_HOME/lib [oracle@ora1 lib]$ ls -las libobk* 0 lrwxrwxrwx. 1 oracle oinstall 21 Sep 22 09:46 libobk.so -> /usr/lib/libnsrora.so
libobk and libnsrora files varies based on the OS.
libobk.sl and /usr/lib/libnsrora.sl.libobk.a and /usr/lib/libnsrora.a.libnsrora, instead it is called orasbt.dll, and is located in <NetWorker installation Directory>\nsr\bin.
C:\Program Files\EMC NetWorker\nsr\bin should be listed first.
orasbt.dll during backup and restore operations.
orasbt.dll file from the <NetWorker installation Directory>\nsr\bin to the windows\system32\ directory, and copy the nsrsbtcn.exe file from the <NetWorker installation Directory>\nsr\bin to the windows\system32\ directory.
If the above resolution did not link the library, manually add the following line to the RMAN script,
"SBT_LIBRARY=/usr/lib/libnsrora.so" or "SBT_LIBRARY=<NetWorker installation Directory>\nsr\bin\orasbt.dll";
Example:
run{
allocate channel t1 type 'sbt_tape' PARMS='SBT_LIBRARY=/usr/lib/libnsrora.so SBT_PARMS=(NSR_SERVER=linux1.amer.lan,NSR_CLIENT=ora.amer.lan,NSR_DATA_VOLUME_POOL=ddveamerlan)';
......
......
}