iqbalj
asked on
DBMS_JOB interval....
*** DBMS_JOB.SUBMIT(........, SYSDATE, SYDATE+1);
sets the next execution time next day and the time is whenever I'm submitting in SYSDATE.
How do I specify it to run everyday @5:00 AM
Thanks a lot.
sets the next execution time next day and the time is whenever I'm submitting in SYSDATE.
How do I specify it to run everyday @5:00 AM
Thanks a lot.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
meowsh,
Thanks for the answer, but you had some syntax error.
See the comment from 'dda'; you need 'to_date' function and
interval 'SYSDATE +1'.
Thanks again.
Thanks for the answer, but you had some syntax error.
See the comment from 'dda'; you need 'to_date' function and
interval 'SYSDATE +1'.
Thanks again.
variable jobno number;
alter session set nls_date_language='america
alter session set nls_date_format='dd.mm.yyy
begin
dbms_job.submit(:jobno,
'dbms_ddl.analyze_object('
''myschema'', ''mytable'',
''estimate'', null, 50);',
to_date(to_char(sysdate,'d
'to_date(to_char(sysdate+1
end;
/