Eu tinha esse script do antigo DBA, o que esse script faz??? posso executar sem medo????
SET HEADING OFF
SET PAGESIZE 0
SET FEEDBACK OFF
SET SERVEROUTPUT ON
SET TRIMSPOOL ON
SPOOL D:ORACLEORADATATESTEPCCREINDEX.LST
SELECT ‘SPOOL D:ORACLEORADATATESTEPCCINDICE.LOG’ FROM DUAL
/
SELECT ‘SELECT TO_CHAR(SYSDATE, ‘ || ”” || ‘DD/MM/YYYY HH24:MI:SS’ || ”” || ‘) FROM DUAL;’ FROM DUAL
/
SELECT ‘ALTER INDEX ‘ || OWNER || ‘.’ || INDEX_NAME || ‘ REBUILD TABLESPACE ‘ || TABLESPACE_NAME || ‘ NOLOGGING;’
FROM DBA_INDEXES
WHERE OWNER IN (‘SUPORTE’)
/
SELECT ‘SELECT TO_CHAR(SYSDATE, ‘ || ”” || ‘DD/MM/YYYY HH24:MI:SS’ || ”” || ‘) FROM DUAL;’ FROM DUAL
/
SELECT ‘SPOOL OFF’ FROM DUAL
/
–SELECT ‘EXIT’ FROM DUAL
–/
SPOOL OFF
SET HEADING ON
SET PAGESIZE 14
SET FEEDBACK ON
SET SERVEROUTPUT OFF
–EXIT