Chinaunix首页 | 论坛 | 博客
  • 博客访问: 245328
  • 博文数量: 50
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 533
  • 用 户 组: 普通用户
  • 注册时间: 2015-07-28 21:56
个人简介

活着,寻找生存。

文章分类

全部博文(50)

文章存档

2017年(1)

2016年(20)

2015年(29)

我的朋友

分类: Oracle

2015-12-28 17:14:28

DG 备库不能创建数据文件,出现ORA-01111错误,查看alter.log日志:

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION
Attempt to start background Managed Standby Recovery process (ora)
Mon Dec 28 16:41:57 2015
MRP0 started with pid=28, OS id=21828 
MRP0: Background Managed Standby Recovery process started (ora)
 started logmerger process
Mon Dec 28 16:42:02 2015
Managed Standby Recovery starting Real Time Apply
MRP0: Background Media Recovery terminated with error 1111
Errors in file /opt/oracle/diag/rdbms/ora_st/ora/trace/ora_pr00_21830.trc:
ORA-01111: name for data file 6 is unknown - rename to correct file
ORA-01110: data file 6: '/opt/oracle/product/11.2.0/db_64/dbs/UNNAMED00006'
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01111: name for data file 6 is unknown - rename to correct file
ORA-01110: data file 6: '/opt/oracle/product/11.2.0/db_64/dbs/UNNAMED00006'
Managed Standby Recovery not using Real Time Apply
Slave exiting with ORA-1111 exception
Errors in file /opt/oracle/diag/rdbms/ora_st/ora/trace/ora_pr00_21830.trc:
ORA-01111: name for data file 6 is unknown - rename to correct file
ORA-01110: data file 6: '/opt/oracle/product/11.2.0/db_64/dbs/UNNAMED00006'
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01111: name for data file 6 is unknown - rename to correct file
ORA-01110: data file 6: '/opt/oracle/product/11.2.0/db_64/dbs/UNNAMED00006'
Recovery Slave PR00 previously exited with exception 1111
MRP0: Background Media Recovery process shutdown (ora)
Mon Dec 28 16:42:03 2015
Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION

解决:
SQL> show parameter standby

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
standby_archive_dest                 string      ?/dbs/arch
standby_file_management              string      AUTO

SQL> alter system set standby_file_management='MANUAL' scope=both;

System altered.

SQL> alter database create datafile '/opt/oracle/product/11.2.0/db_64/dbs/UNNAMED00006' as '/opt/oracle/oradata/ora/text.256.898447813';

Database altered.

SQL> alter system set standby_file_management='AUTO' scope=both;

System altered.

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;

Database altered.


阅读(2567) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~