重庆思庄Oracle、Redhat认证学习论坛

标题: CATPROC - Packages and Types Invalid in Dba_registry [打印本页]

作者: 郑全    时间: 2022-2-22 23:00
标题: CATPROC - Packages and Types Invalid in Dba_registry
CATPROC - Packages and Types Invalid in Dba_registry (Doc ID 457861.1)       


In this Document
Goal
Solution
References



APPLIES TO:

Gen 1 Exadata Cloud at Customer (Oracle Exadata Database 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

Oracle Database Cloud Schema Service - Version N/A and later

Oracle Database - Enterprise Edition - Version 12.1.0.2 to 12.1.0.2 [Release 12.1]

Information in this document applies to any platform.




GOAL

Dba_registry shows 'Packages and Types' as invalid. How it can be validated.


SQL> select comp_name, version, status from dba_registry;


COMP_NAME                                VERSION    STATUS

---------------------------------------- ---------- ----------

Oracle XML Database                      10.2.0.1.0 VALID

Oracle Database Catalog Views            10.2.0.1.0 VALID

Oracle Database Packages and Types       10.2.0.1.0 INVALID

JServer JAVA Virtual Machine             10.2.0.1.0 VALID

Oracle XDK                               10.2.0.1.0 VALID

Oracle Database Java Packages            10.2.0.1.0 VALID



SOLUTION

'Packages and Types' can usually be validated by running catalog and catproc scripts (but not adviced, if XDB is installed and version is lower then 10.1.0.2, see next section):


$sqlplus "/as sysdba"

SQL> spool fix_cat_logfile.txt

SQL> startup upgrade

-- Use 'startup migrate' if database version is lower than 10g.

SQL > @?/rdbms/admin/catalog.sql

SQL > @?/rdbms/admin/catproc.sql

SQL > @?/rdbms/admin/utlrp.sql

SQL> spool off

Restart the database after executing the scripts.


sqlplus / as sysdba


shutdown immediate


startup


If selecting dba_registry only shows errors like "ORA-04063: View "SYS.DBA_REGISTRY" has errors" then refer Note 358015.1 and then run above steps

REFERENCES


NOTE:759635.1 - CATPROC Component Is Invalid and Will Not Validate

NOTE:300056.1 - Debug and Validate Invalid Objects

NOTE:358015.1 - ORA-04063 and ORA-00904 on "SYS.DBA_REGISTRY" ORA-00904

BUG:3355444 - CATALOG AND CATPROC CORRUPT XDB REPOSITORY LEADING TO ORA-600 [KQLUDP2]

NOTE:1506140.1 - Primary Note: Troubleshooting Oracle Data Dictionary

NOTE:753041.1 - How to Diagnose Components with NON VALID Status in DBA_REGISTRY after an Upgrade



作者: 郑全    时间: 2022-2-22 23:06
SQL> r
  1* select COMP_NAME,VERSION,STATUS from dba_registry

COMP_NAME                                VERSION                        STATUS
---------------------------------------- ------------------------------ --------------------
Oracle Database Catalog Views            19.0.0.0.0                     LOADED
Oracle Database Packages and Types       19.0.0.0.0                     LOADING
JServer JAVA Virtual Machine             19.0.0.0.0                     VALID
Oracle XDK                               19.0.0.0.0                     VALID
Oracle Database Java Packages            19.0.0.0.0                     VALID
OLAP Analytic Workspace                  19.0.0.0.0                     VALID
Oracle Real Application Clusters         19.0.0.0.0                     VALID
Oracle XML Database                      19.0.0.0.0                     VALID
Oracle Workspace Manager                 19.0.0.0.0                     VALID
Oracle Text                              19.0.0.0.0                     VALID
Oracle Multimedia                        19.0.0.0.0                     VALID

COMP_NAME                                VERSION                        STATUS
---------------------------------------- ------------------------------ --------------------
Spatial                                  19.0.0.0.0                     VALID
Oracle OLAP API                          19.0.0.0.0                     VALID
Oracle Label Security                    19.0.0.0.0                     VALID
Oracle Database Vault                    19.0.0.0.0                     VALID

15 rows selected.

在19.13也遇到这个问题,通过以上方法解决。
主要是EXPD导出报错误:ora-31626 ora-31638 ora-06512 ora-39077 ora-01001 ,于是有人执行了catalog.sql,catproc.sql,就出现无效了,不过执行以上过程后,确实可以正常的导出数据了







欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2