dataguard宕机重启后,MRP进程起不来,报ORA-01111(10g)或者ORA-01274(11g)错

Posted shujuyr

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了dataguard宕机重启后,MRP进程起不来,报ORA-01111(10g)或者ORA-01274(11g)错相关的知识,希望对你有一定的参考价值。

问题背景:
客户dataguard宕机重启后,MRP进程因缺少数据文件起不来,
报错如下ORA-01111: name for data file 19 is unknown - rename to correct file

问题解决

1> 检查dataguard,sid已经正常启动,尝试启动MRP进程起不来,查看alert日志 (10g)

技术图片
1 Errors in file /home/oracle/admin/oradb/bdump/zjport_mrp0_17798.trc:
2 ORA-01111: name for data file 19 is unknown - rename to correct file
3 ORA-01110: data file 19: ‘/home/oracle/product/10.2.0/db_1/dbs/UNNAMED00019‘
4 ORA-01157: cannot identify/lock data file 19 - see DBWR trace file
5 ORA-01111: name for data file 19 is unknown - rename to correct file
6 ORA-01110: data file 19: ‘/home/oracle/product/10.2.0/db_1/dbs/UNNAMED00019‘
7 MRP0: Background Media Recovery process shutdown (oradb)
技术图片

 

查看alert日志发现datafile为19的数据库文件缺失,尝试重新创建

1 ALTER SYSTEM SET standby_file_management=‘MANUAL‘ SCOPE=BOTH;
2 alter database create datafile ‘/home/oracle/product/10.2.0/db_1/dbs/UNNAMED00019‘ as ‘/u01/oracle/oradata/oradb/test02.dbf‘
3 ALTER SYSTEM SET standby_file_management=‘AUTO‘ SCOPE=BOTH;

 

重启MRP进程

1 ALTER DATABASE RECOVER managed standby database disconnect from session parallel 12;

 

2> 如果是11g,报错可能如下

技术图片
1 File #1103 added to control file as ‘UNNAMED01103‘ because
2 the parameter STANDBY_FILE_MANAGEMENT is set to MANUAL
3 The file should be manually created to continue.
4 Errors with log /oradb/db_dg_arc/oradb/oradb_2_193066_899639967.arc
5 MRP0: Background Media Recovery terminated with error 1274
6 Errors in file /u01/oracle/diag/rdbms/oradb/oradb/trace/oradb_pr00_25640.trc:
7 ORA-01274: cannot add datafile ‘+oradb/oradb/datafile/sysaux_04.dbf‘ - file could not be created
8 Managed Standby Recovery not using Real Time Apply
9 Recovery interrupted!
技术图片

 

发现datafile为1103的数据文件确实,尝试重新创建

1 ALTER SYSTEM SET standby_file_management=‘MANUAL‘ SCOPE=BOTH;
2 alter database create datafile ‘/u01/oracle/product/db11gr2/dbs/UNNAMED01103‘ as ‘/sxbddj/sxbddjdat_u01/sxbddj/sysaux_04.dbf‘;
3 ALTER SYSTEM SET standby_file_management=‘AUTO‘ SCOPE=BOTH;
4 ALTER DATABASE RECOVER managed standby database disconnect from session parallel 12 ;

 

3> 如果不知道文件编号所代表的数据文件是哪一个,可以从主库中获取

1 SQL> select name from v$datafile where file#=1103;
2 NAME
3 --------------------------------------------------------------------------------
4 oradb/oradb/datafile/sysaux_04.dbf

 

以上是关于dataguard宕机重启后,MRP进程起不来,报ORA-01111(10g)或者ORA-01274(11g)错的主要内容,如果未能解决你的问题,请参考以下文章

MRP进程起不来, 报错:ORA-00600: internal error code, arguments: [2619], [227424], [], [], [], [], [], [], []

MRP进程起不来, 报错:ORA-00600: internal error code, arguments: [2619], [227424], [], [], [], [], [], [], []

导入镜像后,容器内httpd起不来

Oracle Dataguard报错:ARC1: Becoming the ‘no FAL‘ ARC

一个因pid文件丢失,nginx的进程起不来,网站页面无法访问的故事

虚拟机网卡起不来