Oracle 升級到9.2.0.4,exp失敗


這是我們子公司的資料庫系統,因為已經很早就過了伺服器的保固期間,

而且該型號也已無零件備料可供替換,只好將它更換。

順便也將DB由9.2.0.1 32bit 升到 9.2.0.4 64bit

升級的方法很傳統,先安裝 Oracle Enterprise Linux 4.8 64bit,再安裝Oracle 9.2.0.4 64bit

以舊機將資料export出來,再import到新機器上面,最後設定備份腳本,測試時出現錯誤:

[oracle@sent02 oracle]$ ./exp.sh

Export: Release 9.2.0.4.0 - Production on Fri May 23 09:02:44 2008

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
JServer Release 9.2.0.4.0 - Production
Export done in ZHT16BIG5 character set and AL16UTF16 NCHAR character set

About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user John
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user John
EXP-00008: ORACLE error 942 encountered
ORA-00942: table or view does not exist
EXP-00024: Export views not installed, please notify your DBA
EXP-00000: Export terminated unsuccessfully


這是因為Oracle DB是從9.2.0.1昇級到9.2.0.4,某些EXP需要的字典没有被升级所以造成錯誤,
解決方法與9.2.0.4昇級到.2.0.7一樣,執行 rdbms/admin/catexp.sql 就可以了