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

  • by

ORA-27211

Saw ORA-27211 which caused the RMAN operation to fail.

RMAN> ...
...
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library

Let’s see what device type we have.

RMAN> SHOW DEVICE TYPE;

RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 3 BACKUP TYPE TO BACKUPSET;
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;

Solution

The solution is simple:

  1. If you still want to use SBT_TAPE as the default channel, you should check the media library thoroughly, it may be out of date or points to the wrong file. Try to drop symbolic links related to the library and then link them back. Use sbttest if necessary.
  2. If you don’t want to use SBT_TAPE as the default channel, then you have to clear the default channel from SBT_TAPE to DISK,.
  3. RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' CLEAR;

    old RMAN configuration parameters:
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 3 BACKUP TYPE TO BACKUPSET;
    RMAN configuration parameters are successfully reset to default value

    This will make RMAN forget the device type SBT_TAPE and back to the default setting.

Leave a Reply

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