dg环境,主库创建表空间,备库若没有创建成功,备库日志应用失败的解决方法

来源:互联网 发布:程序员办公室 编辑:程序博客网 时间:2024/05/21 07:01

dg环境,如果主库创建表空间,备库若没有创建成功的话,备库日志应用将失败。报错信息如下:
MRP0: Background Managed Standby Recovery process started
MRP0: Background Media Recovery terminated with error 1111
Wed Dec 28 21:40:27 2011
Errors in file /opt/u01/oracle/admin/qjhdg/bdump/qjhdg_mrp0_25508.trc:
ORA-01111: name for data file 11 is unknown - rename to correct file
ORA-01110: data file 11: '/opt/u01/oracle/product/9.2.0.4/dbs/UNNAMED00011'
ORA-01157: cannot identify/lock data file 11 - see DBWR trace file
ORA-01111: name for data file 11 is unknown - rename to correct file
ORA-01110: data file 11: '/opt/u01/oracle/product/9.2.0.4/dbs/UNNAMED00011'
MRP0: Background Media Recovery process shutdown
Wed Dec 28 21:40:28 2011

解决方法是:

alter database create datafile '/opt/u01/oracle/product/9.2.0.4/dbs/UNNAMED00011'

as '/opt/u01/oracle/oradata/qjhdg/mytab01.dbf';

然后再应用日志,如果还是应用不了 ,SHUTDOWN 后,再应用日志!!

原创粉丝点击