免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5024 | 回复: 8
打印 上一主题 下一主题

[归档] oracle 异机恢复归档日志调试问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-20 00:31 |只看该作者 |倒序浏览
环境: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在恢复目录里,这个要怎么解,请教各位高手

论坛徽章:
0
2 [报告]
发表于 2009-09-20 01:18 |只看该作者
后面经过调试,结果如下:
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 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2009-09-20 15:58 |只看该作者
请问,从磁带机中进行恢复是否可以在没进行控制文件和数据文件恢复的情况下,先进行归档日志的恢复??

论坛徽章:
12
CU大牛徽章
日期:2013-09-18 15:20:4815-16赛季CBA联赛之同曦
日期:2016-02-01 20:28:25IT运维版块每日发帖之星
日期:2015-11-10 06:20:00操作系统版块每日发帖之星
日期:2015-10-28 06:20:002015亚冠之塔什干棉农
日期:2015-06-04 11:41:56丑牛
日期:2014-05-10 16:11:33技术图书徽章
日期:2013-09-23 13:25:58CU大牛徽章
日期:2013-09-18 15:21:17CU大牛徽章
日期:2013-09-18 15:21:12CU大牛徽章
日期:2013-09-18 15:21:06CU大牛徽章
日期:2013-09-18 15:20:58数据库技术版块每日发帖之星
日期:2016-02-08 06:20:00
4 [报告]
发表于 2009-09-20 20:15 |只看该作者
有catalog db的话想按照什么顺序restore都可以

论坛徽章:
0
5 [报告]
发表于 2009-09-20 22:37 |只看该作者
你是说测试备份机上的catalog db吗

论坛徽章:
0
6 [报告]
发表于 2009-09-21 09:25 |只看该作者
所以还是oracle的catalog好啊,虽然nbu默认是通过脚本备份一遍controlfile,可是恢复的时候还是不如catalog方便

论坛徽章:
0
7 [报告]
发表于 2009-09-22 13:05 |只看该作者
要不用CATALOG服务器,要不先恢复controlfile

论坛徽章:
0
8 [报告]
发表于 2009-09-22 14:31 |只看该作者
楼上正解

论坛徽章:
0
9 [报告]
发表于 2009-09-28 21:52 |只看该作者
21号就做出来了,NETWORK下要先恢复controlfile,然后恢复archivelog和数据文件,感谢各位
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP