資料庫升級ora-04063 DBMS_REGISTRY has error

來源:互聯網
上載者:User

在做Oracle資料庫從11.2.0.1.0升級到11.2.0.2.8時,軟體升級沒有問題,執行個體升級沒有問題,升級psu的時候。運行@?/rdbms/admin/catbundle psu apply時,只顯示一部分資訊,即終止apply。
在dba_registry_history中未顯示11.2.0.2.8的psu資訊;select * from dba_registry_history;ACTION_TIME                    ACTION          NAMESPACE  VERSION            ID BUNDLE_SER COMMENTS------------------------------ --------------- ---------- ---------- ---------- ---------- ------------------------------05-JUN-14 12.50.22.878147 PM   VIEW INVALIDATE                          8289601            view invalidation05-JUN-14 12.50.23.234212 PM   UPGRADE         SERVER     11.2.0.2.0                       Upgraded from 11.2.0.1.005-JUN-14 12.50.59.175151 PM   APPLY           SERVER     11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 01.55.26.047671 PM   APPLY                      11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 01.55.37.411219 PM   ROLLBACK                   11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 01.58.26.752280 PM   ROLLBACK                   11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 01.58.57.774343 PM   ROLLBACK                   11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 02.03.58.934479 PM   APPLY                      11.2.0.2            0 PSU        Patchset 11.2.0.2.0
查詢dba_registry的時候直接報錯:select * from dba_registry;ORA-04063: package body "SYS.DBMS_REGISTRY_SYS" has errorsORA-06508: PL/SQL: could not find program unit being called:"SYS.DBMS_REGISTRY_SYS"ORA-06512: at line 1
最終問題定位在DBMS_REGISTRY_SYS包失效,重新跑一下prvtcr.plb指令碼即可解決:SQL>@?/rdbms/admin/prvtcr.plb重現查詢dba_registry不再報錯,接著重新apply psu:SQL>@?/rdbms/admin/catbundle.sql psu applyselect * from dba_registry_history;ACTION_TIME                    ACTION          NAMESPACE  VERSION            ID BUNDLE_SER COMMENTS------------------------------ --------------- ---------- ---------- ---------- ---------- ------------------------------05-JUN-14 12.50.22.878147 PM   VIEW INVALIDATE                          8289601            view invalidation05-JUN-14 12.50.23.234212 PM   UPGRADE         SERVER     11.2.0.2.0                       Upgraded from 11.2.0.1.005-JUN-14 12.50.59.175151 PM   APPLY           SERVER     11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 01.55.26.047671 PM   APPLY                      11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 01.55.37.411219 PM   ROLLBACK                   11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 01.58.26.752280 PM   ROLLBACK                   11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 01.58.57.774343 PM   ROLLBACK                   11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 02.03.58.934479 PM   APPLY                      11.2.0.2            0 PSU        Patchset 11.2.0.2.005-JUN-14 04.40.56.460140 PM   APPLY           SERVER     11.2.0.2            8 PSU        PSU 11.2.0.2.89 rows selected.
OK ,psu apply成功。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.