oracle缺归档起库,缺少归档日志,ORACLE数据库恢复使用_allow_resetlogs_corruption参数...

数据库版本10.2.0.2.0,要恢复到2011年备份,online备份,

恢复过程中,open的时候出现如下报错,经检查缺少备份的归档日志。

SQL> alter database open resetlogs;

alter database open resetlogs

*

ERROR at line 1:

ORA-01195: online backup of file 1 needs more recovery to be consistent

ORA-01110: data file 1: '/oracle/P01/sapdata1/system_1/system.data1'

解决方法如下:

修改如下隐藏参数

SQL> alter system set "_allow_resetlogs_corruption"=true scope=spfile;

System altered.

修改后重新启动数据库

SQL> shutdown immediate

ORA-01109: database not open

Database dismounted.

ORACLE instance shut down.

SQL> startup mount

ORACLE instance started.

Total System Global Area 1.2415E+10 bytes

Fixed Size 2049960 bytes

Variable Size 2751469656 bytes

Database Buffers 9646899200 bytes

Redo Buffers 14721024 bytes

Database mounted.

SQL> alter databaseopen resetlogs;

lslslsalter database open resetlogs

*

ERROR at line 1:

ORA-03113: end-of-file on communication channel

查看当前状态

SQL> select status from v$instance;

ERROR:

ORA-03114: not connected to ORACLE

启动过程中自动断掉了,所有的oracle进程都不见了,

重新连接,直接startup启动成功,恢复成功,查看当前数据库状态。

SQL> select status from v$instance;

STATUS

------------

OPEN

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值