SELECT 'ALTER INDEX'||' '|| OWNER||'.'||INDEX_NAME||' REBUILD TABLESPACE '||'GJAV_INDEX;' FROM dba_indexes
WHERE status LIKE 'UNUSABLE';
SQLDatabase Management and Linux
SELECT 'ALTER INDEX'||' '|| OWNER||'.'||INDEX_NAME||' REBUILD TABLESPACE '||'GJAV_INDEX;' FROM dba_indexes
WHERE status LIKE 'UNUSABLE';
SQL