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

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1313|回复: 1

CATPROC - Packages and Types Invalid in Dba_registry

[复制链接]
发表于 2022-2-22 23:00:48 | 显示全部楼层 |阅读模式
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:14 | 显示全部楼层
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,就出现无效了,不过执行以上过程后,确实可以正常的导出数据了


回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-17 02:45 , Processed in 0.094661 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表