How To schedule a oracle Job
Step 1 : Login to sys User (sqlplus / as sysdba)
Step 2 : Execute below command
BEGIN DBMS_SCHEDULER.create_job
( job_name => 'db size calculation',
job_type => 'PLSQL_BLOCK',
job_action => 'begin ins.db_size_caluation; end;',
start_date => to_date('24/06/2009 06:27:00','dd/mm/yyyy hh24:mi:ss'),
repeat_interval => 'freq=DAILY; byminute=0',
end_date => null,
enabled => TRUE,
comments => 'To Gather');
END;
/
Step 2 : Execute below command
BEGIN DBMS_SCHEDULER.create_job
( job_name => 'db size calculation',
job_type => 'PLSQL_BLOCK',
job_action => 'begin ins.db_size_caluation; end;',
start_date => to_date('24/06/2009 06:27:00','dd/mm/yyyy hh24:mi:ss'),
repeat_interval => 'freq=DAILY; byminute=0',
end_date => null,
enabled => TRUE,
comments => 'To Gather');
END;
/
Comments
Post a Comment