You are on page 1of 1

SET VERIFY OFF

SET SERVEROUTPUT ON SIZE 1000000


SET PAGESIZE 1000
SET LINESIZE 1000

DEFINE sys_user = ''


column col_temp new_value schema_user
select user col_temp from dual;

CLEAR SCREEN

PROMPT
PROMPT **********************************************************
PROMPT * Currently Logged In User is: &schema_user
PROMPT *
PROMPT * NOTE: You MUST be logged in as the ECM Schema user
PROMPT * If not, press CTRL-C and log in as the ECM Schema User
PROMPT * user and run this script again.
PROMPT *
PROMPT * NOTE: If this user is correct press ENTER to continue.
PROMPT * or press CTRL-C to break now.
PROMPT **********************************************************

PAUSE

PROMPT
PROMPT **********************************************************
PROMPT * User Input Required
PROMPT **********************************************************
CLEAR SCREEN

ACCEPT logfile PROMPT 'Enter a path and name for the logfile (e.g.
c:\output\shutdownsched.log): '

PROMPT
PROMPT ***********************************************************
PROMPT * Please Verify Values above and press ENTER to continue
PROMPT * or CTRL-C to QUIT
PROMPT ***********************************************************

PAUSE

spool &logfile

PROMPT ***********************************************************
PROMPT * CURRENT TIMESTAMP INFORMATION
PROMPT ***********************************************************

select current_timestamp from dual;

-- Force all scheduler tasks to disabled


Update schtasks set status = 0 where status > 0;

Commit;
spool off

You might also like