netbakcup備份時遇到 status 6: the backup failed to back up the requested files 問題解決

djb1008發表於2012-11-08

一.問題描述:


一個本來可以正常備份的netbakckup客戶端,在進行正常的備份任務時,失敗,錯誤描述如下:
the backup failed to back up the requested files(6).

檢查netbackup客戶端的資料庫備份日誌檔案,顯示的錯誤資訊如下:

using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on ch00 channel at 11/08/2012 15:23:50
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
Additional information: 2

[@more@]

二.問題分析
在netbackup客戶端,測試netbackup伺服器是否可以正常訪問,結果失敗,如下:
[oracle@dmis ~]$ sbttest "SBT_TAPE"
The sbt function pointers are loaded from oracle.static library.
libobk.so could not be loaded. Check that it is installed

報了libobk.so模組沒有被裝載.這是本次備份失敗的主要原因.

三. 問題解決

[oracle@dmis ~]$ cd /usr/openv/netbackup/bin
[oracle@dmis bin]$ ./oracle_link
Thu Nov 8 15:56:11 EST 2012
All Oracle instances should be shutdown before running this script.

Please log into the Unix system as the Oracle owner for running this script

Do you want to continue? (y/n) [n] y

LIBOBK path: /usr/openv/netbackup/bin
ORACLE_HOME: /oracle/product/10.2.0/db_1
Oracle version: 10.2.0.5.0
Platform type: x86_64
Linking LIBOBK:
ln -s /usr/openv/netbackup/bin/libobk.so64 /oracle/product/10.2.0/db_1/lib/libobk.so
Done

Please check the trace file located in /tmp/make_trace.13621
to make sure the linking process was successful.

再次測試netbackup伺服器是否可以訪問,結果成功,如下:
[oracle@dmis bin]$ sbttest "SBT_TAPE"
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
。。。。。。
-- sbtread2 succeeded
-- sbtclose2 succeeded
-- sbtremove2 succeeded
-- regular_backup_restore ends ................................

然後在netbakcup服務端手工進行該客戶端的備份 ,可以順利進行下去,問題得到解決.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/32980/viewspace-1059734/,如需轉載,請註明出處,否則將追究法律責任。

相關文章