MDSYS.SDO_GEOM Package Body will not Compile due to Error ORA-00904: "COLTYPE": invalid identifier (Doc ID 1551312.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Spatial - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

 Oracle Spatial or Locator (Oracle Multimedia) componet is invalid in DBA_REIGISTRY.

There is one invalid object related to Spatial, i.e. -

SQL> SELECT owner,object_name,object_type,status FROM dba_objects where status!='VALID';

OWNER                          OBJECT_NAME                              OBJECT_TYPE         STATUS
------------------------------ ---------------------------------------- ------------------- -------
MDSYS                          SDO_GEOM                                 PACKAGE BODY        INVALID

 

Manual compilation of this object results in below error -


Warning: Package Body created with compilation errors.

Errors for PACKAGE BODY SDO_GEOM:

LINE/COL ERROR
-------- -----------------------------------------------------------------
2816/3   PL/SQL: SQL Statement ignored
2818/41  PL/SQL: ORA-00904: "COLTYPE": invalid identifier
2824/3   PL/SQL: SQL Statement ignored
2826/9   PL/SQL: ORA-00904: "TNAME": invalid identifier
2832/3   PL/SQL: SQL Statement ignored
2834/41  PL/SQL: ORA-00904: "COLTYPE": invalid identifier

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms