1. 程式人生 > >oracle ORA-39700: database must be opened with UPGRADE option

oracle ORA-39700: database must be opened with UPGRADE option

ORA-01092: ORACLE instance terminated. Disconnection forced

ORA-00704: bootstrap process failure

ORA-39700: database must be opened with UPGRADE option

程序 ID: 3650

會話 ID: 292 序列號: 5
 


問題原因:進行資料庫報錯的時候才突然想起犯了一個錯誤原資料庫的版本是11.2.0.1,但是目標資料庫的版本是11.2.0.3,所以在開啟的時候就提示了0RA-39700。

解決方法:通過upgrade的方式開啟資料庫,如下


[oracle@ekptest001 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on 星期三 12月 24 15:31:16 2014

Copyright (c) 1982, 2011, Oracle. All rights reserved.

已連線到空閒例程。

SQL> startup mount;

ORACLE 例程已經啟動。

Total System Global Area 6797832192 bytes

Fixed Size 2241264 bytes

Variable Size 3523218704 bytes

Database Buffers 3254779904 bytes

Redo Buffers 17592320 bytes

資料庫裝載完畢。

SQL> alter database open upgrade;

資料庫已更改。

SQL> select status from v$Instance;

STATUS

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

OPEN MIGRATE

SQL> @$ORACLE_HOME/rdbms/admin/catupgrd.sql;

其中執行catupgrd.sql指令碼花費了30分鐘,完成後會自動關閉資料庫,就可以正常打開了。

原理:當資料庫的升級的時候,資料庫內部的基表進行了變更,資料字典也需要進行相應的更新,執行catupgrd.sql會進行