ORA-01110: data file 1: '/opt/ora10g/oradata/orcla/system01.dbf'错误

在做_allow_resetlogs_corruption隐含参数的实验时,破坏了重做日志,active状态的日志,因为归档没有完,

先用了clear清除日志, SQL>alter database clear unarchived logfile group 3;不能清除,于是用备份进行不完全恢复。

Sql>recover database until cancel;

先auto,结果应该是提示归档日志的问题,没有截下图。这时我直接打开数据库如下,错误也如下

SQL> alter database open resetlogs;

alter database open

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: '/opt/ora10g/oradata/orcla/system01.dbf'

解决如下:

先sql>recover datafile '/opt/ora10g/oradata/ orcla /system01.dbf';

提示成功

再次打开数据库还是报错,于是决定使用备份进行全库不完全恢复,数据库mount状态如下:

Rman>restore database

然后再sql>recover database until cancel;

Auto还是报错,于是使用ceancel;

Media recovery cancelled.

SQL> alter database open resetlogs;

Database altered.

 

思考:system01 recover 之后没有整个库处于一致状态的原因还不够清楚。希望后面的学习中可以逐渐理清楚。

你可能感兴趣的:(System)