oracle 异机恢复归档日志调试问题

发布于 2022-08-28 23:40:22 字数 1860 浏览 10 评论 8

环境:solaris 10 /oracle 9/EMC network 7X
情况:在异机恢复磁带库上的归档日志,调试脚本过程中提示如下:
bash-3.00$ rman cmdfile=res_arch.rcv
Recovery Manager: Release 9.2.0.1.0 - 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.
RMAN> connect target [email=backup/backup@portdb]backup/backup@portdb[/email];
2> connect catalog [email=rmanportdb/rmanportdb@xe]rmanportdb/rmanportdb@xe[/email];
3>
4> run
5> {
6>  allocate channel t1 type 'sbt_tape'
7>  parms 'ENV=(NSR_SERVER=fpgbackupserver,NSR_DATA_VOLUME_POOL=Default,NSR_CLIENT=fpserver)';
8>
9>  set archivelog destination to '/export/home/oracle/product/9.2/dbs/arch';
10>
11>  restore archivelog all;
12>
13>
14>
15>
16>
17>  release channel t1;
18>
19> }
20>
21>
connected to target database: PORTDB (DBID=3508279324)
connected to recovery catalog database
allocated channel: t1
channel t1: sid=18 devtype=SBT_TAPE
channel t1: NMO v4.2.0.0
executing command: SET ARCHIVELOG DESTINATION
Starting restore at 20-SEP-09
released channel: t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 09/20/2009 00:25:52
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20242: specification does not match any archive log in the recovery catalog
Recovery Manager complete

意思好象是没有相配的archive log在恢复目录里,这个要怎么解,请教各位高手

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

我早已燃尽 2022-08-29 23:57:38

21号就做出来了,NETWORK下要先恢复controlfile,然后恢复archivelog和数据文件,感谢各位

我不会写诗 2022-08-29 23:46:38

楼上正解

旧时模样 2022-08-29 23:39:07

要不用CATALOG服务器,要不先恢复controlfile

一萌ing 2022-08-29 23:14:10

所以还是oracle的catalog好啊,虽然nbu默认是通过脚本备份一遍controlfile,可是恢复的时候还是不如catalog方便

冷︶言冷语的世界 2022-08-29 23:04:33

你是说测试备份机上的catalog db吗

我的影子我的梦 2022-08-29 23:04:24

有catalog db的话想按照什么顺序restore都可以

旧伤慢歌 2022-08-29 22:54:37

请问,从磁带机中进行恢复是否可以在没进行控制文件和数据文件恢复的情况下,先进行归档日志的恢复??

只是一片海 2022-08-29 05:10:02

后面经过调试,结果如下:
bash-3.00$ rman cmdfile=res_arch.rcv

Recovery Manager: Release 9.2.0.1.0 - 64bit Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

RMAN> connect target backup/backup@portdb;
2> connect catalog rmanportdb/rmanportdb@xe;
3>
4> run
5> {
6>  allocate channel t1 type 'sbt_tape'
7>  parms 'ENV=(NSR_SERVER=fpgbackupserver,NSR_DATA_VOLUME_POOL=Default,NSR_CLIENT=fpserver)';
8>
9>  set archivelog destination to '/export/home/oracle/arch';
10>
11>  restore archivelog all;
12>
13>
14>
15>
16>
17>  release channel t1;
18>
19> }
20>
21>
connected to target database: PORTDB (DBID=3508279324)

connected to recovery catalog database

allocated channel: t1
channel t1: sid=17 devtype=SBT_TAPE
channel t1: NMO v4.2.0.0

executing command: SET ARCHIVELOG DESTINATION

Starting restore at 20-SEP-09

archive log thread 1 sequence 41 is already on disk as file /export/home/oracle/arch/ARCH_1_41.dbf
restore not done; all files readonly, offline, or already restored
Finished restore at 20-SEP-09

released channel: t1

Recovery Manager complete.

[ 本帖最后由 cary9999 于 2009-9-20 15:56 编辑 ]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文