How to Resolve ORA-27211: Failed to load Media Management Library

  • by
In an unfamiliar server, I usually test the channel before actually run my RMAN scripts.
RMAN> run
{
  allocate channel c1 type 'sbt_tape';
  release channel c1;
}
2> 3> 4> 5> 6>
using target database controlfile instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on c1 channel at 11/13/2014 19:41:36
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
Additional information: 2

Oh, some kind of library problems. After comparing the other database server, I found the error was caused by a missing link to an actual library file provided by Netbackup. So I made this soft link.
# ln -s /usr/openv/netbackup/bin/libobk.a64 $ORACLE_HOME/lib/libobk.a
# ls -l $ORACLE_HOME/lib/libobk.a
lrwxrwxrwx   1 oracle   dba         35 Nov 13 20:26 /oracle/lib/libobk.a -> /usr/openv/netbackup/bin/libobk.a64

Let’s test it again.
RMAN> run
{
  allocate channel c1 type 'sbt_tape';
  release channel c1;
}
2> 3> 4> 5> 6>
using target database controlfile instead of recovery catalog
allocated channel: c1
channel c1: sid=10 devtype=SBT_TAPE
channel c1: VERITAS NetBackup for Oracle - Release 5.1 (2005081403)
sent command to channel: c1
released channel: c1

Now, we can actually run other RMAN script. Please note that, the command format of creating a symbolic link is as the following:
ln -s <source path> <target path>

Leave a Reply

Your email address will not be published. Required fields are marked *