Oracle表空间正在热备份时关闭实例重启报错的重(3)

 

 

首页数据库技术

背景:

阅读新闻

Oracle表空间正在热备份时关闭实例重启报错的重现和解决

[日期:2014-11-12]   来源:Linux社区  作者:haibusuanyun   [字体:]  

11.2.0.4.0 版本表空间正在热备份时关闭实例重启报错的重现和解决:

-->11G此问题的报错信息比10G更清楚,根据报错信息就有了基本的判断方向。

SQL> select * from v$backup;

     FILE# STATUS                CHANGE# TIME

---------- ------------------ ---------- -------------------

         1 NOT ACTIVE                  0

         2 NOT ACTIVE                  0

         3 NOT ACTIVE                  0

         4 NOT ACTIVE                  0

         5 NOT ACTIVE                  0

         6 NOT ACTIVE            1149659 2014/11/11 21:49:55

         7 NOT ACTIVE                  0

7 rows selected.

SQL> select sysdate from dual;

SYSDATE

-------------------

2014/11/11 22:05:26

SQL> ALTER TABLESPACE TEST1 BEGIN BACKUP;

Tablespace altered.

SHUTDOWN ABORT实例并重启:

SQL> startup

Oracle instance started.

Total System Global Area  418484224 bytes

Fixed Size                  1365040 bytes

Variable Size             322964432 bytes

Database Buffers           88080384 bytes

Redo Buffers                6074368 bytes

Database mounted.

ORA-10873: file 6 needs to be either taken out of backup mode or media

recovered

ORA-01110: data file 6: '/u01/app/oracle/oradata/bys1/test01.dbf'

此时ALERT日志的报错信息:

Completed: ALTER DATABASE   MOUNT

Tue Nov 11 22:06:36 2014

ALTER DATABASE OPEN

Errors in file /u01/app/oracle/diag/rdbms/bys1/bys1/trace/bys1_ora_3910.trc:

ORA-10873: file 6 needs to be either taken out of backup mode or media recovered

ORA-01110: data file 6: '/u01/app/oracle/oradata/bys1/test01.dbf'

ORA-10873 signalled during: ALTER DATABASE OPEN...

Tue Nov 11 22:06:36 2014

Checker run found 1 new persistent data failures

Tue Nov 11 22:21:36 2014

 

SQL> select * from v$backup;

     FILE# STATUS                CHANGE# TIME

---------- ------------------ ---------- -------------------

         1 NOT ACTIVE                  0

         2 NOT ACTIVE                  0

         3 NOT ACTIVE                  0

         4 NOT ACTIVE                  0

         5 NOT ACTIVE                  0

         6 ACTIVE                1171509 2014/11/11 22:05:40

         7 NOT ACTIVE                  0

7 rows selected.

 

END BACKUP或RECOVER DATAFILE即可

SQL> ALTER TABLESPACE TEST1 end BACKUP;

Tablespace altered.

ALERT日志:

Tue Nov 11 23:00:56 2014

ALTER TABLESPACE TEST1 end BACKUP

Completed: ALTER TABLESPACE TEST1 end BACKUP

Tue Nov 11 23:01:23 2014

RECOVER DATAFILE时的相关日志:

Tue Nov 11 21:51:02 2014

Checker run found 1 new persistent data failures

Tue Nov 11 22:00:46 2014

ALTER DATABASE RECOVER  datafile 6  

Media Recovery Start

Serial Media Recovery started

Recovery of Online Redo Log: Thread 1 Group 3 Seq 48 Reading mem 0

  Mem# 0: /u01/app/oracle/oradata/bys1/redo03.log

Recovery of Online Redo Log: Thread 1 Group 1 Seq 49 Reading mem 0

  Mem# 0: /u01/app/oracle/oradata/bys1/redo01.log

Media Recovery Complete (bys1)

Completed: ALTER DATABASE RECOVER  datafile 6  

Tue Nov 11 22:01:01 2014

alter database open

 

 

SQL> select * from v$backup;

     FILE# STATUS                CHANGE# TIME

---------- ------------------ ---------- -------------------

         1 NOT ACTIVE                  0

         2 NOT ACTIVE                  0

         3 NOT ACTIVE                  0

         4 NOT ACTIVE                  0

         5 NOT ACTIVE                  0

         6 NOT ACTIVE            1171509 2014/11/11 22:05:40

         7 NOT ACTIVE                  0

7 rows selected.

更多Oracle相关信息见Oracle 专题页面 ?tid=12

本文永久更新链接地址

 

bbed修改undo段状态(ORA-01578)

Oracle之索引(Index)实例讲解 - 基础

相关资讯       Oracle表空间 

   

本文评论   查看全部评论 (0)


评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

 

 

 

最新资讯

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/faead688e288c5318d94e02c2d9efa55.html