ORA-04063: view "SYS.DBA_REGISTRY" has errors

简介:

测试环境做了RMAN还原(从10.2.0.4.0 32bit 还原到 10.2.0.4.0 64bit)后,查询dba_registry系统视图时报如下错误

SQL> select  comp_name,version,status from dba_registry;
select  comp_name,version,status from dba_registry
                                      *
ERROR at line 1:
ORA-04063: view "SYS.DBA_REGISTRY" has errors
 
 
SQL> select * from v$version;
 
BANNER
----------------------------------------------------------------
Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production

clip_image001

出现这个问题,只需要执行$ORACLE_HOME/rdbms/admin/prvtcr.plb脚本即可。

SQL> $ORACLE_HOME/rdbms/admin/prvtcr.plb 
 
 
SQL> col comp_name for a40
SQL> col version for a20
SQL> select  comp_name,version,status from dba_registry;
 
COMP_NAME                                VERSION              STATUS
---------------------------------------- -------------------- ---------------------------------
Oracle Enterprise Manager                10.2.0.4.0           VALID
Spatial                                  10.2.0.1.0           OPTION OFF
Oracle interMedia                        10.2.0.4.0           VALID
OLAP Catalog                             10.2.0.1.0           OPTION OFF
Oracle XML Database                      10.2.0.4.0           VALID
Oracle Text                              10.2.0.4.0           VALID
Oracle Expression Filter                 10.2.0.4.0           VALID
Oracle Rule Manager                      10.2.0.4.0           VALID
Oracle Workspace Manager                 10.2.0.4.3           VALID
Oracle Data Mining                       10.2.0.1.0           OPTION OFF
Oracle Database Catalog Views            10.2.0.4.0           LOADED
 
COMP_NAME                                VERSION              STATUS
---------------------------------------- -------------------- ---------------------------------
Oracle Database Packages and Types       10.2.0.4.0           LOADING
JServer JAVA Virtual Machine             10.2.0.4.0           VALID
Oracle XDK                               10.2.0.4.0           VALID
Oracle Database Java Packages            10.2.0.4.0           VALID
OLAP Analytic Workspace                  10.2.0.1.0           OPTION OFF
Oracle OLAP API                          10.2.0.1.0           OPTION OFF
 
17 rows selected.
相关文章
|
7月前
|
SQL Oracle 关系型数据库
WARNING: Too Many Parse Errors With error=911 When Running a JDBC Application Connected to an Oracle 19c database
WARNING: Too Many Parse Errors With error=911 When Running a JDBC Application Connected to an Oracle 19c database (
96 2
|
7月前
|
Oracle 关系型数据库 数据库
【已解决】ORA-00942: table or view does not exist
【已解决】ORA-00942: table or view does not exist
591 0
|
关系型数据库 数据库
ORA-01501: CREATE DATABASE failed
使用dbca建库时遇到ORA-01501: CREATE DATABASE failed这个错误,检查告警日志,发现有下面错误信息: SMON: enabling tx recovery Fri Apr 29 14:06:25 HKT 2016 replication_dependenc...
2169 0
|
Oracle 关系型数据库 OLAP
当SID=racdb时 当sys system 分别 报错 ORA-27101: shared memory realm does not exist
<div id="content" class="bigfont mycontent" style="zoom:1; line-height:23px; font-size:14px; margin:18px 28px; font-family:'lucida Grande',Verdana,'Microsoft YaHei'; clear:both; min-height:200px;
3486 0
|
SQL Oracle 关系型数据库
11.2 Job Seperation causes WARNINGS and ORA-15025 ORA-27041 With Certain Users (文档 ID 1317692.1)
<p>11.2 Job Seperation causes WARNINGS and ORA-15025 ORA-27041 With Certain Users (文档 ID 1317692.1)</p> <p><br></p> <p></p> <p style="line-height:1.5; font-family:Simsun; font-size:12px"><stron
2061 0
|
数据库
Data Pump Client Gets UDE-8 ORA-31626 ORA-39086 (文档 ID 549781.1)
我的解决办法: 换个目录,重新导出,或者重启数据库。   Data Pump Client Gets UDE-8 ORA-31626 ORA-39086 (文档 ID 549781.
2427 0