Check and move indexes to Index tablespace.



========================================================================
Check and move indexes to Index tablespace.(please check change tablespace name in script data and index)
========================================================================
SELECT 'ALTER INDEX Schema_Name.' ||index_name|| ' REBUILD TABLESPACE Tablescpae_index;'
FROM dba_indexes WHERE owner = 'Schema_Name'
AND TEMPORARY='N' AND tablespace_name = 'Tablescpae_DATA';

Comments

Popular posts from this blog

Shareplex some commands

SQL Tuning Task Creation ORA-13780: SQL statement does not exist.

ORA-1092 : opitsk aborting process