1. Home
  2. Knowledge Base
  3. Database Administration
  4. Creating a job using Oracle 10g Scheduler

Creating a job using Oracle 10g Scheduler

job_name => ‘”HR”.”ALTER_INDX001″‘,
job_type => ‘PLSQL_BLOCK’,
job_action => ‘begin
EXECUTE IMMEDIATE ”alter index HR.EMP_NAME_IX coalesce”;
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″‘ );

The following two tabs change content below.

Gavin Soorma

Latest posts by Gavin Soorma (see all)

Updated on June 2, 2021

Was this article helpful?

Related Articles

Leave a Comment