what is wrong in the code [message #559045] |
Thu, 28 June 2012 04:19 |
rhnilu
Messages: 12 Registered: January 2009 Location: Bangladesh
|
Junior Member |
|
|
DECLARE
job_num NUMBER;
BEGIN
DBMS_JOB.SUBMIT(job => job_num,
what => 'BEGIN EXECUTE IMMEDIATE ''alter tablespace advertise offline''; END;',
next_date =>sysdate
interval =>'sysdate+2');
END;
/
I write this code to run every day. for next_date is sysdate but it doesn't run at current date the tablespace still online.
what is the problem? can anyone pls answer...
[Updated on: Thu, 28 June 2012 04:28] Report message to a moderator
|
|
|
|
|
|