Is This Content Helpful?
We're glad to know this article was helpful.
Instructions provided describe how to move an st_geometry attribute's spatial index to a new tablespace. Reasons that may force the movement of a spatial index to a new tablespace could be space management or resource contention between multiple segments on the same physical disk.
To move a spatial index between tablespaces, use the Oracle ALTER TABLE command in SQL*Plus.
The following example demonstrates how to move a table's spatial index to a new tablespace using the Oracle ALTER TABLE command in SQL*Plus.
The example's objective is to move the street table's spatial index from its current tablespace to a new tablespace named strt_idx_tbs.
SQL> SELECT geom_id
2 FROM sde.st_geometry_columns
3 WHERE table_name = 'STREET'
4 AND owner = USER;
SQL> ALTER TABLE s102_idx$ MOVE TABLESPACE strt_idx_tbs;
SQL> SELECT tablespace_name
2 FROM user_indexes
3 WHERE index_name = 'S102$_IX1';