[GIS] Querying Oracle geometry data type

geometryoracle-dbmssdo-geometrysqlst-geometry

How to query or find the geometry data type a given Oracle Database is using in SQL Developer (i.e. SDO_Geometry, ST_Geometry, etc)?

I thought I could just describe a feature class within the database and get the result, but it just returns the field types. The geometry field just returns 'NUMBER', which isn't helpful.

Best Answer

You can check the SDO metadata table to get spatial information:

select * from MDSYS.ALL_SDO_GEOM_METADATA where TABLE_NAME = 'tablename'