ITPub博客

首页 > Linux操作系统 > Linux操作系统 > EMC network rman备份报ORA-27211

EMC network rman备份报ORA-27211

原创 Linux操作系统 作者:sunny123cn2002 时间:2011-01-19 16:17:16 0 删除 编辑

ORA-27211 Failed to load Media Management Library                                                                                                                
                                                                                                                                                                 
Cause: User-supplied SBT_LIBRARY or libobk.so could not be loaded. Call to dlopen for media library returned error. See Additional information for the error code.
                                                                                                                                                                 
Action: Retry the command with proper media library. Or re-install Media management module for Oracle.                                                           

ORACLE RMAN 备份archivelog报错,报错如下:
RMAN-00571: ===========================================================                                                                                                                                                                     
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============    
RMAN-00571: ===========================================================    
RMAN-03009: failure of allocate command on t1 channel at 01/19/2011 10:38:11
ORA-19554: error allocating device, device type: SBT_TAPE, device name:    
ORA-27211: Failed to load Media Management Library                         
Additional information: 2

该机器上两个DB,一个RAC DB,一个Single DB,使用EMC Network 7.6进行RMAN备份,带库为EMC DATADOMAIN。Single DB的archivelog和全备都正常,RAC DB的全备也正常,但就是进行archive备份时有时成功,有时失败,报ORA-27211。根据错误解释检查动态库文件libobk.a正常。仔细检查备份脚本发现@后面跟的网络服务名有问题,修改成实例2对应的网络服务名问题解决。

1、原脚本
connect target sys/sys@test
run
{
  allocate channel t1 type 'SBT_TAPE';
  send 'NSR_ENV=(NSR_SERVER=backupserver,NSR_CLIENT=testservser2)';
  sql 'alter system archive log current';
  backup archivelog all delete input format '/a1_%s_%p/';
  release channel t1;
}

2、修改脚本
connect target sys/sys@test2
run
{
  allocate channel t1 type 'SBT_TAPE'
  parms "ENV=(NSR_SERVER=backupserver,NSR_CLIENT=testserver2,NSR_DEBUG_FILE=/nsr/applogs/test.log, NSR_DEBUG_LEVEL=9)";
  sql 'alter system archive log current';
  backup archivelog all delete input format '/a1_%s_%p/';
  release channel t1;
}

3、关闭NSR服务,将/NSR下的tmp目录重命名后再重建/tmp/nwora目录
nsr_shutdown
mv tmp tmp.bak
mkdir -p /tmp/nwora
chmod 755 /tmp/nwora
[testserver2@root] /nsr/tmp #nsrnmoadmin -r list

NSR_NWPATH=/usr/bin

NSR_ORACLECAT_MODE=undetermined

NSR_REMOVE_ON_FAILURE=FALSE

NSR_ORACLE_NLS_LANG=

NSR_ORACLECAT_LOG_FILE=

NSR_ORACLECAT_DEBUG_FILE=

NSR_TMPDIR=

NSR_BUNDLING=disabled

NSR_INCR_EXPIRATION=disabled

NSR_ORACLE_CONNECT_FILE=sys/sys@test2
NSR_ORACLE_HOME=/oracle/product/10.2/db_1
NSR_ORACLE_LIB_PATH=
NSR_ORACLE_SID=testorcl2
NSR_ORACLE_TNS_ADMIN=

4、启动NSR服务
rc.nsr start

5、在network中再次执行备份计划正常

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/702413/viewspace-684237/,如需转载,请注明出处,否则将追究法律责任。

下一篇: VIP DEBUG
请登录后发表评论 登录
全部评论

注册时间:2010-11-01

  • 博文量
    6
  • 访问量
    8958