错误具体信息:
SQL> startup mount ORACLE instance started. Total System Global Area 709836800 bytes Fixed Size 2256632 bytes Variable Size 478150920 bytes Database Buffers 226492416 bytes Redo Buffers 2936832 bytes Database mounted. SQL> desc dba_data_file; ERROR: ORA-04043: object dba_data_file does not exist SQL> desc dba_data_files; ERROR: ORA-04043: object dba_data_files does not exist SQL> alter database open; alter database open * ERROR at line 1: ORA-10458: standby database requires recovery ORA-01196: file 1 is inconsistent due to a failed media recovery session ORA-01110: data file 1: '/u01/app/oracle/oradata/ZDS/system01.dbf'
#启动MRP
SQL> alter database recover managed standby database disconnect from session; Database altered.
#查看进程,没有MRP进程
SQL> select process,status from v$managed_standby; PROCESS STATUS --------- ------------ ARCH CONNECTED ARCH CONNECTED ARCH CONNECTED ARCH CLOSING RFS IDLE RFS IDLE RFS IDLE
7 rows selected.
#查看日志,报错无法启用闪回数据库
alter database recover managed standby database disconnect from session Attempt to start background Managed Standby Recovery process (ZDS) Wed Sep 28 00:12:45 2016 MRP0 started with pid=33, OS id=13443 MRP0: Background Managed Standby Recovery process started (ZDS) MRP0: Background Media Recovery terminated with error 38760 Errors in file /u01/app/oracle/diag/rdbms/zds_s/ZDS/trace/ZDS_mrp0_13443.trc: ORA-38760: This database instance failed to turn on flashback database MRP0: Background Media Recovery process shutdown (ZDS) Completed: alter database recover managed standby database disconnect from session
2.解决方法;
#删除还原点
SQL> select name from v$restore_point; NAME -------------------------------------------------------------------------------- BEFORE_POINT_G SQL> drop restore point BEFORE_POINT_G; Restore point dropped.
#关闭闪回数据库
SQL> alter database flashback off; Database altered.
#启用MRP
SQL> alter database recover managed standby database disconnect from session; Database altered. SQL> select process,status from v$managed_standby; PROCESS STATUS --------- ------------ ARCH CONNECTED ARCH CONNECTED ARCH CONNECTED ARCH CLOSING RFS IDLE RFS IDLE RFS IDLE MRP0 APPLYING_LOG 8 rows selected.
#打开数据库,说启用了MRP,等日志应用完毕,再关闭MRP然后打开数据库
SQL> alter database open; alter database open * ERROR at line 1: ORA-10456: cannot open standby database; media recovery session may be in progress SQL> alter database recover managed standby database cancel; Database altered. SQL> alter database open; Database altered.
OK了!
版权声明:本文为博主原创文章,未经博主允许不得转载。
ORA-38760
- 上一篇:12c中查询同一个表,数据不同
- 下一篇:12C 对表分区维护的增强