DG备库执行只读open的时候报错

10.2.0.4RAC到单机

--DG备库执行只读open的时候报错
SQL> alter database open read only
  2  ;
alter database open read only
*
ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/u01/app/orcl/datafile/system.dbf '


--那就recover
RMAN> recover datafile 1;

Starting recover at 22-DEC-15
using channel ORA_DISK_1

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 12/22/2015 07:50:20
RMAN-06067: RECOVER DATABASE required with a backup or created control file


--recover数据库
RMAN>  RECOVER DATABASE
2> ;

Starting recover at 22-DEC-15
using channel ORA_DISK_1

starting media recovery

unable to find archive log
archive log thread=2 sequence=12
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 12/22/2015 07:55:19
RMAN-06054: media recovery requesting unknown log: thread 2 seq 12 lowscn 723823

--那就去主端找日志文件:
ASMCMD [+fra/orcl/archivelog/2015_12_21] > ls  
thread_1_seq_1.257.899049055
thread_1_seq_2.258.899049063
thread_1_seq_3.259.899052839
thread_1_seq_4.261.899052841
thread_1_seq_5.263.899056385
thread_1_seq_6.265.899056387
thread_2_seq_1.256.899048997
thread_2_seq_2.260.899052839
thread_2_seq_3.262.899056381
thread_2_seq_4.264.899056387
ASMCMD [+fra/orcl/archivelog/2015_12_21] > cd ..
ASMCMD [+fra/orcl/archivelog] > cd 2015_12_22
ASMCMD [+fra/orcl/archivelog/2015_12_22] > ls
thread_1_seq_10.272.899102315
thread_1_seq_11.276.899102395
thread_1_seq_12.277.899102395
thread_1_seq_13.278.899102397
thread_1_seq_14.279.899102397
thread_1_seq_15.280.899102399
thread_1_seq_7.266.899097735
thread_1_seq_8.269.899100055
thread_1_seq_9.270.899100059
thread_2_seq_10.275.899102393
thread_2_seq_11.281.899102401
thread_2_seq_5.267.899097797
thread_2_seq_6.268.899097799
thread_2_seq_7.271.899102277
thread_2_seq_8.273.899102389
thread_2_seq_9.274.899102391


后来听说,10g不能打开。只读open是11g的特性。。。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

丹心明月

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值