My oracle database time zone is +03:30 (TEHRAN)
select current_timestamp from dual
22-JAN-24 11.06.09.128998 AM +03:30
dbms_scheduler.create_job (
job_name => v_job_name ,
job_type => 'PLSQL_BLOCK',
job_class => 'DEFAULT_JOB_CLASS',
job_action => v_stmt,
start_date => SYSDATE,
enabled => TRUE,
auto_drop => TRUE
);
but when we set a job to be runned immediately in my current sysdate ,My job run after 3.5 hours !
but we expect that my job run immediatly;
"My oracle database time zone is +03:30 (TEHRAN)" - What does it mean?
See How to handle Day Light Saving in Oracle database
current_timestampreturns the current time in yourSESSIONTIMEZONE, howeverSYSDATEreturns the current time in the time zone of database server's operating system.Parameter
start_datehas data typeTIMESTAMP WITH TIME ZONE, your input value is converted implicitly asHowever, in principle you would require
Try
or
Either of them should work.