Difference between revisions of "Dbms scheduler jobs, programs and schedules"

From dbawiki
Jump to: navigation, search
Line 13: Line 13:
 
===Run a scheduled job===
 
===Run a scheduled job===
 
<pre>
 
<pre>
execute dbms_scheduler.run_job('IBMTOOLS.REBUILD_VIEW_ALL_RMANS');
+
execute dbms_scheduler.run_job('xxxTOOLS.REBUILD_VIEW_ALL_RMANS');
 
</pre>
 
</pre>

Revision as of 12:45, 1 February 2013

Create a scheduled job

DBMS_SCHEDULER.CREATE_JOB( job_name        => 'rebuild_view_all_rmans'
                         , job_type        => 'STORED_PROCEDURE'
                         , job_action      => 'create_all_rmans.rebuild_view'
                         , repeat_interval => 'FREQ=DAILY;BYHOUR=8;BYMINUTE=0;BYSECOND=0'
                         , enabled         => TRUE
                         , comments        => 'Rebuild view ALL_RMANS');

Run a scheduled job

execute dbms_scheduler.run_job('xxxTOOLS.REBUILD_VIEW_ALL_RMANS');