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;
/

Comments

Popular posts from this blog

Installation of Oracle10g on LINUX

RMAN compression

Database upgrade -11.2.0.1 to 11.2.0.4