Problem: Unable to create or install the Esri spatial type for Oracle (-521)

Solution or Workaround

Find the tables that reference a PUBLIC.ST_GEOMETRY column and drop them.
 

  1. Find the tables that reference a PUBLIC.ST_GEOMETRY column.
     
    Code:
    sqlplus sys/manager as sysdba
    
    set pages 9999
    
    SELECT OWNER, NAME, TYPE FROM DBA_DEPENDENCIES WHERE REFERENCED_OWNER='MDSYS' AND REFERENCED_NA
    ME  = 'ST_GEOMETRY' AND REFERENCED_TYPE  = 'TYPE' AND TYPE='TABLE';
    
    OWNER                       NAME                           TYPE
    --------------------------- ------------------------------ ------------------
    MAP                         TEST                           TABLE
    
  2. Drop the table found in Step 1. 
     
    Note:
    If the table is needed for any reason, backup the table before dropping it. This table can be restored after Esri ST_Geometry is installed.
     
    Code:
    drop table map.test;
    
  3. Purge the recycle bin.
     
    Code:
    purge dba_recyclebin;
  4. Re-run the install of the Esri ST_Geometry type

 

 

SELECT OWNER, NAME, TYPE FROM DBA_DEPENDENCIES WHERE REFERENCED_OWNER='MDSYS' AND REFERENCED_NAME  = 'ST_GEOMETRY' AND REFERENCED_TYPE  = 'TYPE' AND TYPE='TABLE';

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章