Job Scheduler
Modules, Windows And Dialogs > Job Scheduler
Access the Oracle Job Scheduler.
A job assigns a task to a schedule. The job tells the schedule which tasks - either one-time tasks created "on the fly," or predefined programs - to run. A specific program can be assigned to one, multiple, or no schedule(s); likewise, a schedule may be connected to one, multiple, or no program(s).
Jobs Tab |
Check the status and settings of existing jobs.
Create, run, schedule, edit and remove jobs. |
All Oracle releases |
Programs Tab |
Define or select programs to be executed. |
Oracle 10g release or later |
Schedules Tab |
Define the frequency with which the Scheduler will execute a particular set of tasks. |
Oracle 10g release or later |
Windows Tab |
Define time windows during which resource plans will be activated. |
Oracle 10g release or later |
Window Groups Tab |
Create a named group with containing windows with similar scheduling properties for ease of management |
Oracle 10g release or later |
Job Classes Tab |
Group together jobs that have similar resource demands into job classes to ensure best utilization of resources. |
Oracle 10g release or later |
Job Log Tab |
Show the current status and information about jobs over a specified date range or by owner. |
Oracle 10g release or later |
Window Log Tab |
Show the current status and information about Windows over a specified date range. |
Oracle 10g release or later |
Jobs Tab
The Jobs function in the Job Scheduler allows you to create, run or schedule jobs.
Note that some of the functionality below is only available in Oracle 10g or later releases.
New |
Click to create a job. This opens the New Job Wizard:
- Enter a Job Name (for 10g or later)
- Select a Job Type (PS/SQL Block or Stored Procedure - in 10g or later)
- Click Next (for 10g or later)
- Enter the PL/SQL code or select a stored procedure to run
- Click Next
- Specify a start date, start time and frequency for your job to run
- Select a repeat frequency if desired
- Click Finish.
The new job will appear in the Jobs window. |
Save |
To attach a program, schedule or job class to a job (for 10g or later)
- Select the job to be scheduled.
- Select the program, schedule or job class to be attached to the job.
- Click Save.
To schedule a job (for 10g or later)
- Select the job to be scheduled.
- Click En (Enabled) next to the job.
- Select Start and End date and time.
- Click Calendar, choose the frequency and intervals for the job and click
- Click Save.
|
Advanced |
Edit available Attribute Values for the selected item (for 10g or later). |
Clone |
Create a copy of the selected item (for 10g or later). |
Run |
To run a job
- Select the job to be run.
- Click Enabled next to the job.
- Click Run.
|
Drop |
Remove the selected item from the database (for 10g or later). |
Programs Tab
(Only for Oracle 10g release or later)
A program defines what the Scheduler will execute. A program's attributes include its name, type (for example: a PL/SQL procedure or anonymous block), and the action it is expected to perform. A program can also accept zero to many arguments, which makes it a flexible building block for constructing schemes of tasks to be scheduled.
New |
Click to create a program
- Enter a Program Name.
- Select a Type, that is PL/SQL Block, Stored Procedure or Executable.
- If you do not want the program to be enabled by default, clear the Enabled check box.
- Define the Action the program is to perform.
- For PL/SQL Block or Executable, enter the relevant command string.
- For Stored Procedure, select one of the available stored procedures from the database.
- Enter any Comments if required
- Click Save.
|
Save |
Save changes to a selected program or a new program. |
Advanced |
Edit available Attribute Values for the selected item. |
Drop |
Remove the selected item from the database. |
Schedules Tab
(Only for Oracle 10g release or later)
A schedule defines when and at what frequency the Scheduler will execute a particular set of tasks. A schedule's attributes include the date on which a set of tasks should begin, how often the tasks should be repeated and when the set of tasks should no longer be executed, either as of a specified date and time, or after a specified number of repetitions.
New |
Click to create a schedule
- Enter a Schedule Name.
-
Select Start and End dates and times.
-
Click Calender, select the required Frequency and Interval and click OK.
- Enter any Comments if required
- Click Save.
|
Save |
Save changes to a selected schedule or a new schedule. |
Advanced |
Edit available Attribute Values for the selected item. |
Drop |
Remove the selected item from the database. |