Вы находитесь на странице: 1из 1

REM ALTER SEQUECE SCRIPT

SET PAGESIZE 0
SET LINESIZE 80
SET FEEDBACK OFF
SET TERMOUT OFF
COLUMN command_line1 FORMAT A75
COLUMN command_line2 FORMAT A75
SPOOL alter_seqSID.cmd
SELECT 'SET ECHO ON' command_line1,
' ' command_line2
FROM DUAL
/
SELECT 'ALTER '||'SEQUENCE '||sequence_owner||'.'||sequence_name||
' NOCACHE;' command_line1,
' ' command_line2
FROM dba_sequences
WHERE
cache_size > 0
/
SPOOL OFF
SET FEEDBACK ON
SET TERMOUT ON
SET ECHO ON
REM SPOOL alter_seqSETUP.doc
REM START alter_seqSETUP.cmd
REM SPOOL OFF