INSERT INTO USER_SDO_GEOM_METADATA failing with ORA-06531 ORA-06512 ORA-04088 after upgrade to 12c (Doc ID 2203649.1)

Last updated on NOVEMBER 23, 2016

Applies to:

Oracle Spatial and Graph - Version 11.1.0.7.0 to 12.1.0.2
Information in this document applies to any platform.

Symptoms

After upgrade from version 11gR1 Standard Edition to 12c Standard Edition, attempts to insert sdo_geometry metadata into USER_SDO_GEOM_METADATA fail with errors:

SQL> INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME)
VALUES ('cola_markets','shape') 2
3 ;
INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME)
*
ERROR at line 1:
ORA-06531: Reference to uninitialized collection
ORA-06512: at "MDSYS.SDO_GEOM_TRIG_INS1", line 33
ORA-04088: error during execution of trigger 'MDSYS.SDO_GEOM_TRIG_INS1'


Changes

 Upgraded the database from 11g to 12c

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