nbu 恢复oracle数据库,关于使用nbu重定向恢复oracle数据库rman报错
我先說下,我要做的事情和環境:
數據庫服務器a機,b機作為NBU server端備份a機數據庫至到磁帶庫st,
現在我想做異地恢復測試,將a機數據庫作為源數據庫,恢復至c機目標數據庫。
如果不連接catalog的話,在目標庫執行:
-bash-3.00$ rman target /
Recovery Manager: Release 9.2.0.6.0 - 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation.??All rights reserved.
connected to target database: china111 (not mounted)
RMAN> run{
2> ALLOCATE CHANNEL CH00 TYPE 'SBT_TAPE';
3> SEND 'NB_ORA_SERV=sol1,NB_ORA_CLIENT=eagle';
4> restore controlfile;
5> }
using target database controlfile instead of recovery catalog
allocated channel: CH00
channel CH00: sid=13 devtype=SBT_TAPE
channel CH00: Veritas NetBackup for Oracle - Release 6.5 (2007072323)
sent command to channel: CH00
Starting restore at 14-JUN-11
released channel: CH00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/14/2011 14:34:03
RMAN-06563: controlfile or SPFILE must be restored using FROM AUTOBACKUP
RMAN> exit
同樣指定 FROM AUTOBACKUP 也報錯:
RMAN> set dbid=2087198266
executing command: SET DBID
RMAN> run{
2> ALLOCATE CHANNEL CH00 TYPE 'SBT_TAPE';
3> SEND 'NB_ORA_SERV=sol1,NB_ORA_CLIENT=eagle';
4> restore controlfile from autobackup;
5> }
allocated channel: CH00
channel CH00: sid=11 devtype=SBT_TAPE
channel CH00: Veritas NetBackup for Oracle - Release 6.5 (2007072323)
sent command to channel: CH00
Starting restore at 14-JUN-11
channel CH00: looking for autobackup on day: 20110614
channel CH00: looking for autobackup on day: 20110613
channel CH00: looking for autobackup on day: 20110612
channel CH00: looking for autobackup on day: 20110611
channel CH00: looking for autobackup on day: 20110610
channel CH00: looking for autobackup on day: 20110609
channel CH00: looking for autobackup on day: 20110608
channel CH00: no autobackup in 7 days found
released channel: CH00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/14/2011 12:51:39
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
google下網上的例子都是連接catalog做恢復的
在目標機做rman恢復的時候,一定需要連接catalogDB才能找到磁帶庫備份的信息嗎?
eg:
rman catalog auss3pis/auss3pis@catalog;
Recovery Manager: Release 9.0.1.4.0 - Production
(c) Copyright 2001 Oracle Corporation.??All rights reserved.
connected to recovery catalog database
RMAN> set dbid=4227459251
executing command: SET DBID
RMAN> connect target / connected to target database:??(not mounted)
RMAN> run {
2> allocate channel ch00 type 'sbt_tape';
3> send 'nb_ora_serv=aush06';
4> send 'nb_ora_client=aush49';
5> restore controlfile;
6> }
allocated channel: ch00
channel ch00: sid=11 devtype=SBT_TAPE
channel ch00: VERITAS NetBackup for Oracle - Release 4.5FP_3GA (2002121901)
sent command to channel: ch00
sent command to channel: ch00
Starting restore at 09-DEC-04
。。。。。。。
[本帖最后由 lixiang114 于 2011-6-14 14:58 編輯]
總結
以上是生活随笔為你收集整理的nbu 恢复oracle数据库,关于使用nbu重定向恢复oracle数据库rman报错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle 生成目录树,jQuery
- 下一篇: oracle 方言报错,ORACLE11