服務器斷電,Oracle數據庫無法啟動解決方案


數據庫沒有備份的情況下,數據庫所在服務器由於意外斷電,導致服務器啟動之后,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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM