/DECLAREs_IndexNameVARCHAR2(255);s_TablespaceNameVARCHAR2(255);Cursorc_IndexesIsSELECTIDX.INDEX_NAMEFROMUSER_INDEXESIDXWHEREINDEX_TYPE='NORMAL'ORINDEX_TYPE='BITMAP';BEGINOpenc_Indexes;LoopFETCHc_IndexesINTOs_IndexName;EXITWHENc_Indexes%NOTFOUND;-- Deplacement des index dans le tablespace TBS_IDXs_TablespaceName:='TBS_IDX';EXECUTEIMMEDIATE'ALTER INDEX '||s_IndexName||' REBUILD TABLESPACE '||s_TablespaceName;-- DBMS_OUTPUT.PUT_LINE('Index Rebuild:' || s_IndexName);EndLoop;Closec_Indexes;COMMIT;END;/