日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

nbu 恢复oracle数据库,关于使用nbu重定向恢复oracle数据库rman报错

發布時間:2025/3/21 数据库 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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报错的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。