分区:
Select 'ALTER INDEX '|| index_name ||' rebuild partition ' || PARTITION_NAME || ' TABLESPACE ' || tablespace_name ||';' from USER_IND_PARTITIONS
子分区:
Select 'ALTER INDEX ' || index_name || ' rebuild subpartition ' ||
SUBPARTITION_NAME || ' TABLESPACE ' || tablespace_name || ' online;'
from user_ind_subpartitions
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15747463/viewspace-739540/
,如需转载,请注明出处,否则将追究法律责任。