共计 3011 个字符,预计需要花费 8 分钟才能阅读完成。
这篇文章主要介绍 NBU 备份数据库时 ORA-27211 错误如何处理,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
安装配置 Veritas Netbackup 7.0 备份 Oracle 11G 数据库时很快报 6 号错误,查 NBU 的输出日志发现产生了一个 ORA-27211 的错误。具体错误信息如下:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on ch00 channel at 09/21/2012 14:36:13
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
Additional information: 2
RMAN RMAN
Recovery Manager complete.
Script /usr/openv/hot_database_backup.sh
==== ended in error on Fri Sep 21 14:36:13 CST 2012 ====
在数据库端 RMAN 备份时,也会遇到错误
oracle@dbsvr$ rman nocatalog target sys/oracle@test
Recovery Manager: Release 11.2.0.3.0 – 64bit Production
Copyright (c) 1982, 2011, Oracle.
All rights reserved.
connected to target database: TRAIN (DBID=678348214)
using target database controlfile instead of recovery catalog
RMAN run {
2 allocate channel ch00 type SBT_TAPE
3 backup full database;
4 release channel ch00;
5 }
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on ch00 channel at 11/13/2005 15:10:28
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
Additional information: 25
6 号错误是 NBU 中比较常见的典型错误, 关于 6 号错误的几种情况分析, 可以参见我之前的博文 netbackup7.0 备份 6 号错误解析 http://xjsunjie.blog.51cto.com/999372/935347, 当然今天我们遇到的这个错误是另外一种情况, 具体问题具体分析.
检查完 NBU 的输出日志后, 我们再查看一下备份时由 Oracle 产生的日志:
$ more data_ora_0579.trc
Oracle process number: 2917
Unix process pid: 5244, p_w_picpath: oracletrain@db
*** ACTION NAME:(0000001 STARTED1) 2012-09-21 14:36:28.230
*** SERVICE NAME:() 2012-09-21 14:36:28.230
*** SESSION ID:(160.7) 2012-09-21 14:36:28.230
SKGFQ OSD: Error in function sbtinit on line 4381
SKGFQ OSD: Look for SBT Trace messages in file /oracle/app/oracle/product/11.2.0/admin/train/udump/sbtio.log
SBT Initialize failed for oracle.static
从上面的日志可以看出,这是由于备份时 sbtinit 失败所引起的。用 Oracle 的测试工具试试:
oracle@db$ sbttest /etc/hosts
The sbt function pointers are loaded from oracle.static library.
libobk.so could not be loaded. Check that it is installed
经过分析,主要原因是 libobk.so 这个文件在 Oracle 中不存在引起的备份失败错误。
下面我们可以这样来操作
oracle@db$ ln -s /usr/openv/netbackup/bin/libobk.so64 /oracle/app/oracle/product/11.2.0/db_1/lib/libobk.so
将 NBU 中的 libobk.so64 文件做一个软链接到 ORACLE 相应目录下
再来测试一下:
oracle@db$ sbttest /etc/hosts
The sbt function pointers are loaded from libobk.so library.
— sbtinit succeeded
— sbtinit (2nd time) succeeded
sbtinit: Media manager supports SBT API version 2.0
sbtinit: Media manager is version 5.0.0.0
sbtinit: vendor description string=Veritas NetBackup for Oracle – Release 7.0 (2011020316)
sbtinit: allocated sbt context area of 8 bytes
sbtinit: proxy copy is supported
— sbtinit2 succeeded
— regular_backup_restore starts …………………………..
或者在 NBU 的 BIN 目录下执行 ORACLE_LINK 脚本也可以实现。
再在 NBU 里进行该策略的备份,发现已经可以正常备份了。
注意:提示说在运行脚本前 ORACLE 实例需关闭,如果你是 ORACLE 9i 以上的版本,这个操作是可以在线直接做的。
以上是“NBU 备份数据库时 ORA-27211 错误如何处理”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注丸趣 TV 行业资讯频道!