25.04.2013 Views

View PDF

View PDF

View PDF

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

Related Topics<br />

CREATE INDEX<br />

To determine if a CREATE INDEX statement for a spatial index has failed, check to see<br />

if the DOMIDX_OPSTATUS column in the USER_INDEXES view is set to FAILED.<br />

This is different from the case of regular indexes, where you check to see if the STATUS<br />

column in the USER_INDEXES view is set to FAILED.<br />

If the CREATE INDEX statement fails because of an invalid geometry, the ROWID of<br />

the failed geometry is returned in an error message along with the reason for the<br />

failure.<br />

If the CREATE INDEX statement fails for any reason, then the DROP INDEX statement<br />

must be used to clean up the partially built index and associated metadata. If DROP<br />

INDEX does not work, add the FORCE parameter and try again.<br />

The following example creates a spatial R-tree index named COLA_SPATIAL_IDX.<br />

CREATE INDEX cola_spatial_idx ON cola_markets(shape)<br />

INDEXTYPE IS MDSYS.SPATIAL_INDEX;<br />

■ ALTER INDEX<br />

■ DROP INDEX<br />

SQL Statements for Indexing Spatial Data 18-11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!