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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- expdp 報錯 ORA-04063: package body "SYS.DBMS_METADATA_UTIL" has errorsPackageError
- “setting.xml” has syntax errorsXMLError
- Oracle 最新PSU (Doc ID 2118136.2)Oracle
- java bug2:settings.xml has syntax errorsJavaXMLError
- expdp/impdp變慢 (Doc ID 2469587.1)
- Reading and Understanding Systemstate Dumps (Doc ID 423153.1)
- RMAN -- Frequently Asked Question (FAQ) (Doc ID 469777.1)
- Oracle 下載最新psu (Doc ID 2118136.2)Oracle
- PRCT-1011 : Failed to run "oifcfg" (Doc ID 1380183.1)AI
- How to Collect Diagnostics for Database Hanging Issues (Doc ID 452358.1)Database
- XML tag has empty body less... (Ctrl+F1) Reports empty tag body. The validation works in XML / JSPXMLJS
- Method has too many Body parameters: public abstract com.cloud.module.smartkeCloud
- [轉帖]Release Schedule of Current Database Releases (Doc ID 742060.1)Database
- 【CURSOR】How to Monitor and tune Open and Cached Cursors (Doc ID 1430255.1)
- Android Studio中的package name和application IDAndroidPackageAPP
- 修復 Ubuntu 中 “E: The package cache file is corrupted, it has the wrong hash”UbuntuPackage
- 解決E: Package ‘libmysqlclient-dev‘ has no installation candidate報錯PackageIBMMySqlclientdev
- eclipse新建maven專案:'Building' has encountered a problem. Errors occurred during the build.EclipseMavenUIError
- Physical Standby Switchover_status Showing Not Allowed. (Doc ID 1392763.1)
- oracle11g: Scheduler Maintenance Tasks or Autotasks (Doc ID 756734.1)OracleAINaN
- 【DBA】Relinking Oracle Home 常見問題 (Doc ID 2048232.1)Oracle
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.1OracleGo
- 11g-Reduce Transportable Tablespace Downtime using XTTS (Doc ID 1389592.1)TTS
- idea裡程式碼報黃色:XML tag has empty body less... (Ctrl+F1) Reports empty tag body. The validation works inIdeaXML
- Can GoldenGate Replicate An Oracle Table That Contains Only CLOB Column(s)? (Doc ID 971833.1)GoOracleAI
- A replica with the same server_uuid/server_id as this replica has connected to the source;ServerUI
- 12c DG新特性 - Active Data Guard Far Sync (Doc ID 2179719.1)
- 【GRID】Grid Infrastructure 啟動的五大問題 (Doc ID 1526147.1)ASTStruct
- 【DATAGUARD】Data Guard 12C 新特性:Far Sync Standby (Doc ID 2179719.1)
- body標籤-HTML5精講 課時ID:6.2 【表嚴肅】#HTML教程 #HTML5教程 #body標籤HTML
- settings.xml has syntax errors less...Parent org.springframework.boot:spring-boot-starter-已解決XMLErrorSpringFrameworkboot
- 【ASM】ORA-27504 ORA-27300 ORA-27303 while starting ASM (Doc ID 2281441.1)ASMWhile
- 【RAC】Oracle 12c以及以上版本的diagsnap是什麼? (Doc ID 2469643.1)Oracle
- 建立Maven專案,提示'settings.xml' has syntax errors less... (Ctrl+F1) Inspection info: Inspects a Maven...MavenXMLError
- How to solve of ORA-04063 and RMAN-06429
- sqlserver docSQLServer
- Working with Errors in Go 1.13ErrorGo
- Go Errors 詳解GoError