Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Spatial Developers Guide 1.23: Spatially Enable Table: 3 of 4 successful, 4-Create Index=ORA-29855 error in ODCIINDEXCREATE

user-4u30nMar 20 2023 — edited Mar 21 2023

I've been successful in spatially enabling an existing table in all but 1 of the 4 steps in the 19c spatial developers guide. The final step to create the index returns generic ORA-29855 error in execution of ODCIINDEXCREATE routine.

In troubleshooting I've ensured account in my personal schema has create sequence and create table and for the steps to enable table:

#1 Altered table to create column of SDO_GEOMETRY type,

#2 updated column with SDO_GEOMETRY(2001, 32700, SD0_POINT_TYPE(X,Y,NULL)NULL,NULL);,

#3 INSERT INTO USER_SDO_GEOM_METADATA VALUES(schema.table, col, SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X',-1, 1,.05), SDO_DIM_ELEMENT('Y',-1,1,.05)),32700);

COMMIT;

#4 create index: CREATE INDEX schema.indexname ON schema.table(col) INDEXTTYPE IS MDSYS.SPATIAL_INDEX_V2 LOCAL;

The spatial data column is showing data in each field 'MDSYS.SDO_GEOMETRY(2001, 32700, MDSYS.SDO_POINT_TYPE(xvalue, yvalue, NULL), NULL, NULL)

can you provide advise on additoinal troubleshooting or possible solution

Comments
Post Details
Added on Mar 20 2023
6 comments
196 views