Warning: Creating default object from empty value in /home/customer/www/gavinsoorma.com/public_html/wp-content/themes/specular/admin/inc/class.redux_filesystem.php on line 29
Creating a job using Oracle 10g Scheduler | Oracle DBA – Tips and Techniques
News
Perth, Australia
+ (61) 417713124
prosolutions@gavinsoorma.com

Creating a job using Oracle 10g Scheduler

  • Posted by Gavin Soorma
  • On June 18, 2009
  • 0 Comments

BEGIN
sys.dbms_scheduler.create_job(
job_name => ‘”HR”.”ALTER_INDX001″‘,
job_type => ‘PLSQL_BLOCK’,
job_action => ‘begin
EXECUTE IMMEDIATE ”alter index HR.EMP_NAME_IX coalesce”;
end;’,
start_date => systimestamp at time zone ‘Asia/Muscat’,
job_class => ‘DEFAULT_JOB_CLASS’,
comments => ‘This job will coalesce index HR.EMP_NAME_IX on the EMPLOYEES table’,
auto_drop => FALSE,
enabled => FALSE);
sys.dbms_scheduler.set_attribute( name => ‘”HR”.”ALTER_INDX001″‘, attribute => ‘restartable’, value => TRUE);
sys.dbms_scheduler.enable( ‘”HR”.”ALTER_INDX001″‘ );
END;

 1

0 Comments

Leave Reply

Your email address will not be published. Required fields are marked *