您的位置:首页 > 博客中心 > 数据库 >

服务器断电,Oracle数据库无法启动解决方案

时间:2022-03-13 23:18

数据库没有备份的情况下,数据库所在服务器由于意外断电,导致服务器启动之后,Oracle数据库startup报错.

1. 数据库没开归档模式

2. 无备份

解决方案:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 SQL>startup mount SQL>recover database using backup controlfile until cancel; SQL>alter database open resetlogs; # 此时会提示system表空间需要恢复,但是由于当前日志损坏 # 无法进行恢复,所以需要加入#隐含参数,oracle才不会监测scn # 的一致性,才能打开数据库。 # 重启数据库加入隐含参数 SQL> startup mount SQL> alter system set “_allow_resetlogs_corruption”=true scope=spfile; SQL> shutdown immediate SQL> startup mount SQL> alter database open resetlogs; alter database open resetlogs * ERROR at line 1: ORA-01092: ORACLE instance terminated. Disconnection forced # 不管这些,再次登录sqlplus起动数据库 SQL*Plus: Release 10.2.0.1.0 - Production on Fri Nov 16 08:03:43 2007 Copyright (c) 1982, 2005, Oracle.  All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options SQL>startup

热门排行

今日推荐

热门手游