码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2020-06-13 10:58:11      阅读:86      评论:0      收藏:0      [点我收藏+]

标签:gif   alt   man   rup   interrupt   rdb   oracle   taf   ora-01110   

问题背景:
客户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)错

标签:gif   alt   man   rup   interrupt   rdb   oracle   taf   ora-01110   

原文地址:https://www.cnblogs.com/shujuyr/p/13111679.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!