1 Introduction to Oracle Enterprise Scheduler

With Oracle Enterprise Scheduler, you can define, schedule and run jobs, or units of work done on an application's behalf.

Oracle Enterprise Scheduler is installed with a product that embeds it to provide scheduling services. You typically won't have to install Oracle Enterprise Scheduler.

This chapter includes the following sections:

1.1 Introduction to Administering Oracle Enterprise Scheduler

With Oracle Enterprise Scheduler, you can define, schedule and run jobs. A job is a unit of work done on an application's behalf.

For example, you might define a job that runs a particular PL/SQL function or command-line process. You can define a job that executes Java code. Those job types are included with Oracle Enterprise Scheduler:

  • Java job type for executing Java code.

  • Web Service job type.

  • EJB job type.

  • Process job type for executing a command-line command.

  • PL/SQL job type for executing functions in Oracle's extension language for SQL.

When you create jobs from these types you associate metadata as a job definition. Through this context-specific metadata, the job does meaningful work on the application's behalf. That metadata can include parameter values the user specifies and values for properties defined by Oracle Enterprise Scheduler. By defining schedules, you can have jobs run when you want them to (such as at off-peak times). You can also specify constraints that prevent jobs from running when you don't want them to. By creating job sets, you can group multiple jobs into batches whose jobs run either simultaneously or in a sequence.

Oracle Enterprise Scheduler provides tools with which you can monitor the system. For example, you might want to get a snapshot of current and pending job requests, or see how the system is performing under load. You can also get logs and the status of service components.

You can perform each of these tasks, from submitting jobs to monitoring the system, with the Scheduling Services pages of Oracle Enterprise Manager Fusion Middleware Control Console. For a more detailed list of tasks, see Basic Tasks for Configuring and Managing Oracle Enterprise Scheduler.

1.2 Basic Tasks for Configuring and Managing Oracle Enterprise Scheduler

You administer Oracle Enterprise Scheduler with the Oracle Enterprise Manager Fusion Middleware Control Console (Fusion Middleware Control).

There, the Scheduling Service home page provides an overview of scheduler component status, top running and completed scheduled job requests, as well as a performance summary of scheduled job requests. Other Scheduling Service pages provide a user interface for performing the tasks described in this section (and many others).

Oracle Enterprise Manager Fusion Middleware Control Console provides accessibility options for the pages on which you monitor and manage Oracle Enterprise Scheduler applications. Fusion Middleware Control supports screen readers and provides standard shortcut keys to support keyboard navigation. You can also view the console pages in high contrast or with large fonts for better readability. For information and instructions on configuring accessibility in Fusion Middleware Control, see "Using Oracle Fusion Middleware Accessibility Options" in Oracle Fusion Middleware Administrator's Guide.

The following sections provide a summary of steps you might take to set up the Oracle Enterprise Scheduler.

1.2.1 Setup and Configuration

  1. Create a domain and configure a cluster. Oracle Enterprise Scheduler is installed by a product that includes it as a service to manage schedules. However, it is possible that the embedding product didn't configure domains that support Oracle Enterprise Scheduler for deploying. See Installing Oracle Enterprise Scheduler.
  2. Configure a request processor and request dispatcher. A job request processor is bound to a particular Oracle Enterprise Scheduler server, and is responsible for allocating threads for job requests. A job request dispatcher polls for job requests. See Configuring Oracle Enterprise Scheduler.
  3. Start the instance. See Starting and Stopping Oracle Enterprise Scheduler Components.

1.2.2 Creating Jobs to Run

  1. Create job definitions. You can define and manage job definitions that specify values specific to the request at hand. See Managing Job Definitions.
  2. Create schedules. You can define a schedule for managing the execution of job requests, work assignments, work shifts and purge policies. You can also create schedules on the fly when creating a request. See Specifying a Job Request Schedule, Creating or Editing Predefined Job Schedules and Managing Schedules.
  3. Create and submit job requests. A job request pulls together a job definition with a schedule on which the job runs. See Submitting an Oracle Enterprise Scheduler Job Request.
  4. Create a purge policy. Purge policies allow you to define the conditions for retaining and purging job requests associated with a request processor. See Managing Purge Policies.

1.2.3 Bundling Jobs and Refining Their Work

  1. Create job sets. With job sets, you can bundle jobs into groups in which the jobs run at the same time or in a sequence. See Managing Job Sets.
  2. Define restrictions with incompatibilities. Incompatibilities specify which jobs shouldn't run at the same time, along with the conditions under which they are incompatible. See Managing Incompatibilities.
  3. Define restrictions with work assignments. Work assignments define rules under which jobs can be processed, along with windows of time in which they can run. See Managing Work Assignments.

1.2.4 Monitoring the System