ORA-39700錯誤(一般升級資料庫容易遇到)
最近有人遇到了ORA-39700錯誤是在DB升級後遇到的,查了下解釋如下:
SQL> !oerr ora 39700
39700, 00000, "database must be opened with UPGRADE option"
// *Cause: A normal database open was attempted, but the database has not
// been upgraded to the current server version.
// *Action: Use the UPGRADE option when opening the database to run
// catupgrd.sql (for database upgrade), or to run catalog.sql
// and catproc.sql (after initial database creation).
說明需要執行這些資料字典指令碼,也就是資料字典裡的東西被改變了
順便查閱了其他人遇到的這個問題解決方法,也歸納如下:
ORA-39700
上星期升級以後重新啟動database發生這樣的情況ORA-01092: ORACLE instance terminated. Disconnection forced
檢察alertfile發現
tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x1)
tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x1)
ORA-00704: bootstrap process failure
ORA-39700: database must be opened with UPGRADE option
tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x1)
ORA-00704: bootstrap process failure
ORA-39700: database must be opened with UPGRADE option
主要原因是升級以後資料字典的一些基表的內容修改了。catalog.sql和catproc.sql這2個指令碼需要在執行一下把資料字典檢視在更新一下。
oerr ora 39700
解決方法:使用startup upgrade啟動就可以了。
[oracle@localhost bdump]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.2.0 - Production on ÐÇÆÚÒ» 7ÔÂ 31 09:26:28 2006
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> STARTUP UPGRADE
ORACLE instance started.
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1259744 bytes
Variable Size 75499296 bytes
Database Buffers 88080384 bytes
Redo Buffers 2932736 bytes
Database mounted.
Database opened.
SQL> @$ORACLE_HOME/rdbms/admin/catupgrd.sql
Fixed Size 1259744 bytes
Variable Size 75499296 bytes
Database Buffers 88080384 bytes
Redo Buffers 2932736 bytes
Database mounted.
Database opened.
SQL> @$ORACLE_HOME/rdbms/admin/catupgrd.sql
...
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP RUL 2006-07-31 10:37:41
DBUA_TIMESTAMP RUL VALID 2006-07-31 10:37:41
--------------------------------------------------------------------------------
COMP_TIMESTAMP RUL 2006-07-31 10:37:41
DBUA_TIMESTAMP RUL VALID 2006-07-31 10:37:41
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UPGRD_END 2006-07-31 10:37:41
.
Oracle Database 10.2 Upgrade Status Utility 07-31-2006 10:37:41
.
Component Status Version HH:MM:SS
Oracle Database Server VALID 10.2.0.2.0 00:14:58
JServer JAVA Virtual Machine VALID 10.2.0.2.0 00:03:58
Oracle XDK VALID 10.2.0.2.0 00:00:58
Oracle Database Java Packages VALID 10.2.0.2.0 00:01:03
Oracle Text VALID 10.2.0.2.0 00:00:27
Oracle XML Database VALID 10.2.0.2.0 00:01:42
Oracle Data Mining VALID 10.2.0.2.0 00:00:27
OLAP Analytic Workspace VALID 10.2.0.2.0 00:00:32
OLAP Catalog VALID 10.2.0.2.0 00:01:04
Oracle OLAP API VALID 10.2.0.2.0 00:01:06
Oracle interMedia VALID 10.2.0.2.0 00:08:36
Spatial VALID 10.2.0.2.0 00:00:58
Oracle Expression Filter VALID 10.2.0.2.0 00:00:21
Oracle Enterprise Manager VALID 10.2.0.2.0 00:01:04
Oracle Rule Manager VALID 10.2.0.2.0 00:00:20
.
Total Upgrade Time: 00:37:41
DOC>#######################################################################
DOC>#######################################################################
DOC>
DOC> The above PL/SQL lists the SERVER components in the upgraded
DOC> database, along with their current version and status.
DOC>
DOC> Please review the status and version columns and look for
DOC> any errors in the spool log file. If there are errors in the spool
DOC> file, or any components are not VALID or not the current version,
DOC> consult the Oracle Database Upgrade Guide for troubleshooting
DOC> recommendations.
DOC>
DOC> Next shutdown immediate, restart for normal operation, and then
DOC> run utlrp.sql to recompile any invalid application objects.
DOC>
DOC>#######################################################################
DOC>#######################################################################
DOC>#
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1259744 bytes
Variable Size 121636640 bytes
Database Buffers 41943040 bytes
Redo Buffers 2932736 bytes
Database mounted.
Database opened.
SQL>
Fixed Size 1259744 bytes
Variable Size 121636640 bytes
Database Buffers 41943040 bytes
Redo Buffers 2932736 bytes
Database mounted.
Database opened.
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/127656/viewspace-422869/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 解決升級資料庫時遇到的Text file busy錯誤資料庫
- 資料庫升級報錯資料庫
- 資料庫升級導致ORA-918錯誤資料庫
- rac 升級crs 升級資料庫軟體,升級資料庫資料庫
- 升級到PHP5.4.3遇到的一個錯誤PHP
- 資料庫restore時遇到1119錯誤資料庫REST
- 資料庫升級資料庫
- ♀♀資料庫升級♀♀資料庫
- 客戶資料庫升級後出現ORA-30004錯誤資料庫
- mysql還原資料庫遇到Unknown command 錯誤MySql資料庫
- 資料庫升級到mysql5.6遇到的資料表ENGINE問題資料庫MySql
- Oracle 資料庫升級Oracle資料庫
- 資料庫啟動時遇到ORA-01578錯誤資料庫
- 資料庫升級之-Dataguard滾動升級資料庫
- 升級informix資料庫到10.0出現KAIO錯誤的解決辦法ORM資料庫AI
- 資料庫升級後匯出報EXP-00056錯誤解決辦法資料庫
- 資料庫升級之-資料泵資料庫
- 資料庫升級和工具資料庫
- 資料庫升級之-XTTS資料庫TTS
- 資料庫升級後goldengate報錯,ORA-04045資料庫Go
- 恢復MySQL資料庫建立儲存過程是遇到錯誤MySql資料庫儲存過程
- 資料升級到5.1所遇到的問題
- 常見的 PostgreSQL 升級錯誤SQL
- ORA-39700 with UPGRADE option錯誤的處理
- oracle資料庫升級11.2.0.3升級到11.2.0.4Oracle資料庫
- 靜默方式安裝、升級oracle(三): 升級資料庫軟體及資料庫Oracle資料庫
- android資料庫如何進行版本升級?架構之資料庫框架升級Android資料庫架構框架
- 通過資料庫鏈匯出遇到ORA-39126錯誤資料庫
- Oracle資料庫升級(轉發)Oracle資料庫
- Oracle 資料庫 升級為 RACOracle資料庫
- ORA-39700 with UPGRADE option錯誤的處理(轉)
- 建立資料庫遇到ORA-12801 ORA-00018錯誤資料庫
- Realm 升級資料庫,為表新增新的Field遇到的異常記錄資料庫
- Cocopods的升級錯誤解決
- Oracle資料庫升級與補丁Oracle資料庫
- 資料庫升級後‘PLAN_TABLE資料庫
- Oracle 資料庫升級注意事項Oracle資料庫
- 資料庫的升級及遷移資料庫