ORA-04063: package body SYS.DBMS_REGISTRY_SYS has errors (Doc ID 2165402.1)
ORA-04063: package body SYS.DBMS_REGISTRY_SYS has errors (Doc ID 2165402.1)
APPLIES TO:
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.
SYMPTOMS
After applying the JAN 2016 cpu patch on the QA super cluster 2 node RAC database initially it look like everything is working fine but later found that any action in the database except switching the archivelog and bouncing the database all the other commands are failing.
When tried to run utlrp script it throw below error.
ERROR at line 1:
ORA-04063: package body "SYS.DBMS_REGISTRY_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called:
"SYS.DBMS_REGISTRY_SYS"
ORA-06512: at line 1
CHANGES
Applied JAN 2016 CPU Patch
CAUSE
dba_registry is invalid
While executing the utlrp script below error was reported.
ORA-04063: package body "SYS.DBMS_REGISTRY_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called:
"SYS.DBMS_REGISTRY_SYS"
ORA-06512: at line 1
SOLUTION
Recreate the DBMS_REGISTRY package and the DBA_REGISTRY view.
Backup database before performing below in case any failure.
Connect as SYSDBA and run the below scripts.
$SQL> shutdown immediate
$SQL> startup upgrade
$SQL> @$ORACLE_HOME/rdbms/admin/catalog.sql
$SQL> @$ORACLE_HOME/rdbms/admin/catproc.sql
$SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql
$SQL> shutdown immediate
$SQL> startup
After running the above script, run the below sql and make sure all the components in dba_registry should be valid
SQL> SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY;
SQL> select * from dba_registry_history;
BTW: Recreate database can also be a workaround of last resort
How To Validate an Invalid SYS.DBMS_REGISTRY_SYS Package (Doc ID 438821.1)
In this Document
|
Goal |
|
Solution |
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.2.0.2 and later
Information in this document applies to any platform.
GOAL
SYS.DBMS_REGISTRY_SYS package is invalid.
Ran the ORACLE_HOME/rdbms/admin/utlrp.sql script to recompile the invalid objects, but still status of SYS.DBMS_REGISTRY_SYS package is invalid.
SOLUTION
SYS.DBMS_REGISTRY_SYS is corrupted and to validate the package, it needs to be recreated using the following script:
SQL>@?/rdbms/admin/prvtcr.plb;
SQL>@?/rdbms/admin/utlrp.sql
This scripts will recreate the package and compile. The status should be valid upon completion.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2768422/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-04063: package body "SYS.DBMS_EXPORT_EXTENSION" has errorsPackageExportError
- ORA-04063: package body "EXFSYS.DBMS_EXPFIL_EXP" has errorsPackageError
- ORA-04063: package body "SYS.LT_EXPORT_PKG" has errorsPackageExportError
- expdp 報錯 ORA-04063: package body "SYS.DBMS_METADATA_UTIL" has errorsPackageError
- 匯出報錯:ORA-04063: package body "DMSYS.DBMS_DM_MODEL_EXP" has errorsPackageError
- 由於字符集問題導致 Package Body created with compilation errors.PackageError
- The DBMS_SUPPORT Package (Doc ID 62294.1)Package
- dbms_scheduler package body INVALID 解決方案Package
- ORA-04042 procedure, function, package, or package body does not existFunctionPackage
- Package Specification 和 Package Body 及 Package有什麼區別? (轉)Package
- “setting.xml” has syntax errorsXMLError
- 包頭(Package)與包體(Package body)的學習與應用Package
- create or replace package body DBMS_ASSERT wrappedPackageAPP
- XML tag has empty body less... (Ctrl+F1) Reports empty tag body. The validation works in XML / JSPXMLJS
- Master Note For PL/SQL UTL_FILE Package (Doc ID 1155024.1)ASTSQLPackage
- idea裡程式碼報黃色:XML tag has empty body less... (Ctrl+F1) Reports empty tag body. The validation works inIdeaXML
- 解決E: Package ‘libmysqlclient-dev‘ has no installation candidate報錯PackageIBMMySqlclientdev
- java bug2:settings.xml has syntax errorsJavaXMLError
- user_dependencies_trigger_view_package_body依賴ViewPackage
- Method has too many Body parameters: public abstract com.cloud.module.smartkeCloud
- 修復 Ubuntu 中 “E: The package cache file is corrupted, it has the wrong hash”UbuntuPackage
- Body SurfaceOrSolidModel GeometrySolid
- Database Startup Fails with ORA-01113, ORA-01110 errors (Doc ID 146039.1)DatabaseAIError
- Body SweptSolid CompositeCurve GeometrySolid
- Body SweptSolid Composite GeometrySolid
- oracle plsql package_body_procedure_構建語法_sp_儲存過程OracleSQLPackage儲存過程
- 修改vip (Doc ID 276434.1)
- Android APIs (Package Index)AndroidAPIPackageIndex
- deploy package outside of jbossPackageIDE
- eclipse新建maven專案:'Building' has encountered a problem. Errors occurred during the build.EclipseMavenUIError
- Oracle 查詢某一個包體’PACKAGE BODY‘中包含PROCEDURE/FUNCTION的名稱有哪些OraclePackageFunction
- HANGFG User Guide (Doc ID 362094.1)GUIIDE
- How to Prepare Storage for ASM (Doc ID 452924.1)ASM
- ASM REACTING TO PARTITION ERRORS [ID 1062954.1]ASMReactError
- WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!REMIDE
- Android開發簡單教程.docAndroid
- SQLT Diagnostic Tool (Doc ID 215187.1)SQL
- Oracle Text Health Check (Doc ID 823649.1)Oracle