Invalid MDSYS Objects Types: SDO_GEO_ADDR after DB Upgrade-1294577.1
In this Document
Applies to:
Oracle Spatial - Version 10.2.0.5 and laterInformation in this document applies to any platform.
Symptoms
After upgrading the database from 10.2.0.4.0 to 10.2.0.5.0, the STATUS of Spatial in DBA_REGISTRY is INVALID and there are 2 INVALID Types owned by MDSYS:
from dba_objects
where wner = 'MDSYS'
and status != 'VALID'
order by 2,3;
OWNER OBJECT_NAME OBJECT_TYPE STATUS
---------- ----------------------- ---------------- -----------
MDSYS SDO_GEO_ADDR TYPE INVALID
MDSYS SDO_NETWORK_MANAGER_I TYPE INVALID
from dba_registry
order by 1;
COMP_NAME VERSION STATUS
----------------------------------- --------------- ----------
JServer JAVA Virtual Machine 10.2.0.5.0 VALID
OLAP Analytic Workspace 10.2.0.5.0 VALID
OLAP Catalog 10.2.0.5.0 VALID
Oracle Data Mining 10.2.0.5.0 VALID
Oracle Database Catalog Views 10.2.0.5.0 VALID
Oracle Database Java Packages 10.2.0.5.0 VALID
Oracle Database Packages and Types 10.2.0.5.0 VALID
Oracle Expression Filter 10.2.0.5.0 VALID
Oracle OLAP API 10.2.0.5.0 VALID
Oracle Rule Manager 10.2.0.5.0 VALID
Oracle Text 10.2.0.5.0 VALID
Oracle XDK 10.2.0.5.0 VALID
Oracle XML Database 10.2.0.5.0 VALID
Oracle interMedia 10.2.0.5.0 VALID
Spatial 10.2.0.5.0 INVALID
Changes
Upgraded database from 10.2.0.4 to 10.2.0.5.
Cause
The cause of this problem has been identified and verified in an unpublished Bug 6748203. It is caused by post-upgrade script, catupgrd.sql, which creates new type objects due to their dependencies and the old versions (subname = $VSN_n) become invalid. The older versions of the types are left in an INVALID state while the newer version of the same types are VALID.
Solution
The status of old versions of types with status 6 can be changed to VALID with the following SQL statements:
UPDATE obj$ SET status=1
WHERE type#=13 AND subname IS NOT NULL AND status=6;
COMMIT;
start ?/rdbms/admin/utlrp.sql
SQL> select owner, object_name, object_type, status
from dba_objects
where wner = 'MDSYS'
and status != 'VALID'
order by 2,3;
no rows selected
SQL> select comp_name, version, status
from dba_registry
order by 1;
COMP_NAME VERSION STATUS
----------------------------------- --------------- ----------
JServer JAVA Virtual Machine 10.2.0.5.0 VALID
OLAP Analytic Workspace 10.2.0.5.0 VALID
OLAP Catalog 10.2.0.5.0 VALID
Oracle Data Mining 10.2.0.5.0 VALID
Oracle Database Catalog Views 10.2.0.5.0 VALID
Oracle Database Java Packages 10.2.0.5.0 VALID
Oracle Database Packages and Types 10.2.0.5.0 VALID
Oracle Expression Filter 10.2.0.5.0 VALID
Oracle OLAP API 10.2.0.5.0 VALID
Oracle Rule Manager 10.2.0.5.0 VALID
Oracle Text 10.2.0.5.0 VALID
Oracle XDK 10.2.0.5.0 VALID
Oracle XML Database 10.2.0.5.0 VALID
Oracle interMedia 10.2.0.5.0 VALID
Spatial 10.2.0.5.0 VALID
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-751560/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CATPROC - Packages and Types Invalid in Dba_registry-457861.1Package
- Recompiling Invalid Schema ObjectsObject
- How to Resolve Invalid Objects in a Database [ID 158185.1]ObjectDatabase
- ObjectsObject
- EF Core – Owned Entity Types & Complex Types
- TypeScript @typesTypeScript
- stock Types
- Types of Locks (340)
- 【檢視】oracle 資料字典檢視之 DBA_OBJECTS / ALL_OBJECTS / USER_OBJECTS(OBJ)OracleObject
- 譯|There Are No Reference Types in GoGo
- TypeScript 之 Object TypesTypeScriptObject
- Two Types of Error in JAVAErrorJava
- Understanding Service Types
- Scala的Abstract Types
- Types of SAP Support PackagesPackage
- types of undo segments(ZT)
- Behind RabbitMQ Exchange TypesMQ
- Trusted Types APIRustAPI
- Oracle dba_objects和all_objects 最大的區別OracleObject
- jQuery after()jQuery
- 淺談Associated ObjectsObject
- Destroying Window ObjectsObject
- create objects inmemory optionsObject
- Naming Database ObjectsDatabaseObject
- DataTransfer.types 屬性
- TypeScript 之 Indexed Access TypesTypeScriptIndex
- TypeScript 之 Conditional TypesTypeScript
- birkenstock sandals spec Younger types
- Types of Processes (108)
- zend_objects_store_putObject
- Objects as Points 論文總結Object
- PDO--PHP Data ObjectsPHPObject
- row cache objects latch研究Object
- Cost objects in SAP R/3Object
- Program Units and Referenced Objects (244)Object
- 【譯】 Types are moving to the right
- SAP MM Stock Tables and Stock Types
- oracle 11g 開啟 em後,High CPU after DB Console start in 11gOracle