无法删除Spatial DB中的元数据条目

时间:2012-03-15 01:58:42

标签: oracle spatial-index spatial-query

I am trying to  a spatial data table in my db using :

CREATE TABLE构建(buildid VARCHAR(15)PRIMARY KEY,buildname VARCHAR(50),numpoint NUMBER,points SDO_GEOMETRY);

CREATE INDEX building_spatial_idx ON building(points)INDEXTYPE IS MDSYS.SPATIAL_INDEX;

INSERT INTO USER_SDO_GEOM_METADATA(TABLE_NAME,COLUMN_NAME,DIMINFO,SRID) 价值观( '建造', “点”, SDO_DIM_ARRAY( - 820 * 580网格     SDO_DIM_ELEMENT('X',0,820,1),     SDO_DIM_ELEMENT('Y',0,580,1)     ) NULL --SRID );

当我第一次执行它时,它没有给出任何错误,但后面是错误

insert into user_sdo_geom_metadata values
*
ERROR at line 1:
ORA-00001: unique constraint (MDSYS.UNIQUE_LAYERS) violated
ORA-06512: at "MDSYS.SDO_GEOM_TRIG_INS1", line 27
ORA-04088: error during execution of trigger 'MDSYS.SDO_GEOM_TRIG_INS1'

Is it happening because am trying to give meta-data for same table again.

或者还有其他原因。如何一次删除所有索引,元数据,表并删除此错误。

1 个答案:

答案 0 :(得分:0)

新的架构创建解决了这个问题,