Note
This view is available starting with V4.2.5 BP1.
Overview
Displays the scheduler job information accessible to the current user.
Columns
Column |
Type |
Nullable |
Description |
|---|---|---|---|
| OWNER | VARCHAR2(128) | NO | Owner of the scheduler job |
| JOB_NAME | VARCHAR2(128) | NO | Name of the scheduler job |
| JOB_SUBNAME | VARCHAR2(128) | NO | Subname of the scheduler job |
| JOB_STYLE | VARCHAR2(17) | YES | Job style. Valid values:
|
| JOB_CREATOR | VARCHAR2(128) | NO | Scheduler Job Creator |
| CLIENT_ID | VARCHAR2(65) | NO | Client identifier of the user who created the job |
| GLOBAL_UID | VARCHAR2(33) | NO | The global user identifier of the job creator. |
| PROGRAM_OWNER | VARCHAR2(4000) | NO | Owner of the job-related program |
| PROGRAM_NAME | VARCHAR2(4000) | YES | Program name related to the job |
| JOB_TYPE | VARCHAR2(16) | YES | Job operation type:
|
| JOB_ACTION | VARCHAR2(4000) | YES | Inline Job Operations |
| NUMBER_OF_ARGUMENTS | NUMBER | YES | Number of Inline Job Parameters |
| SCHEDULE_OWNER | VARCHAR2(4000) | NO | Owner of the plan used by the job |
| SCHEDULE_NAME | VARCHAR2(4000) | NO | Plan name used by the job |
| SCHEDULE_TYPE | VARCHAR2(12) | NO | The default value is NULL. |
| START_DATE | TIMESTAMP(6) WITH TIME ZONE | YES | Original Plan Start Date of Job |
| REPEAT_INTERVAL | VARCHAR2(4000) | YES | Inline plan PL/SQL expression or calendar string |
| EVENT_QUEUE_OWNER | VARCHAR2(128) | NO | The owner of the source queue that triggers the event |
| EVENT_QUEUE_NAME | VARCHAR2(128) | NO | The name of the source queue that triggers the event. |
| EVENT_QUEUE_AGENT | VARCHAR2(523) | NO | The name of the AQ proxy used by the user on the event source queue. |
| EVENT_CONDITION | VARCHAR2(4000) | NO | Subscription rules for events on the source queue |
| EVENT_RULE | VARCHAR2(261) | NO | The name of the rule used by the coordinator to trigger the event-based job. |
| FILE_WATCHER_OWNER | VARCHAR2(261) | NO | Owner of the file observer on which this job is based |
| FILE_WATCHER_NAME | VARCHAR2(261) | NO | The name of the file observer on which this job is based. |
| END_DATE | TIMESTAMP(6) WITH TIME ZONE | YES | Date when the job will stop running |
| JOB_CLASS | VARCHAR2(128) | YES | The name of the job category associated with the job. |
| ENABLED | VARCHAR2(5) | YES | Specifies whether to enable the job. Valid values:
|
| AUTO_DROP | VARCHAR2(5) | YES | Specifies whether the job is deleted after it is completed. Valid values:
|
| RESTART_ON_RECOVERY | VARCHAR2(5) | NO | Indicates whether the job restarts when the cluster restarts. Valid values:
|
| RESTART_ON_FAILURE | VARCHAR2(5) | NO | Whether to restart the job when it fails. Valid values:
|
| STATE | VARCHAR2(15) | YES | Current status: |
| JOB_PRIORITY | NUMBER | NO | Priority of this task compared to other similar tasks |
| RUN_COUNT | NUMBER | YES | Number of Job Runs |
| MAX_RUNS | NUMBER | NO | Maximum Number of Job Plan Runs |
| FAILURE_COUNT | NUMBER | YES | Number of Job Execution Failures |
| MAX_FAILURES | NUMBER | NO | Number of Job Failures Allowed Before Being Marked as Damaged |
| RETRY_COUNT | NUMBER | YES | Number of Job Retries |
| LAST_START_DATE | TIMESTAMP(6) WITH TIME ZONE | YES | Last Start Date of Job |
| LAST_RUN_DURATION | INTERVAL DAY (9) TO SECOND (6) | NO | Time Spent on Completing the Job During the Last Run |
| NEXT_RUN_DATE | TIMESTAMP(6) WITH TIME ZONE | NO | Next scheduled run date |
| SCHEDULE_LIMIT | INTERVAL DAY (3) TO SECOND (0) | NO | Time until jobs that have not started will be rescheduled |
| MAX_RUN_DURATION | INTERVAL DAY (3) TO SECOND (0) | NO | Maximum Time Allowed for Job Execution |
| LOGGING_LEVEL | VARCHAR2(11) | NO | Job-related log records:
|
| STORE_OUTPUT | VARCHAR2(5) | NO | Whether to store the job execution output in the database:
|
| STOP_ON_WINDOW_CLOSE | VARCHAR2(5) | NO | Whether to stop the job when its scheduling window closes. Valid values:
|
| INSTANCE_STICKINESS | VARCHAR2(5) | NO | Whether the job has instance stickiness. Valid values:
|
| RAISE_EVENTS | VARCHAR2(4000) | NO | The default value is NULL. |
| SYSTEM | VARCHAR2(5) | NO | Indicates whether the job is a system job. Valid values:
|
| JOB_WEIGHT | NUMBER | NO | The weight of a job, which specifies its scheduling priority. |
| NLS_ENV | VARCHAR2(4000) | YES | The locale setting for the job. |
| SOURCE | VARCHAR2(128) | NO | The source code or script of the job. |
| NUMBER_OF_DESTINATIONS | NUMBER | NO | The target number of jobs. |
| DESTINATION_OWNER | VARCHAR2(261) | NO | Owner of the job target. |
| DESTINATION | VARCHAR2(261) | NO | The target of the job, that is, the object or location to be operated on. |
| CREDENTIAL_OWNER | VARCHAR2(128) | NO | Owner of the credential. |
| CREDENTIAL_NAME | VARCHAR2(128) | NO | The name of the credential. |
| INSTANCE_ID | NUMBER | YES | Instance on Which User Requests Job to Run |
| DEFERRED_DROP | VARCHAR2(5) | NO | Whether the job is delayed for deletion. |
| ALLOW_RUNS_IN_RESTRICTED_MODE | VARCHAR2(5) | NO | Whether the job is allowed to run in restricted mode. |
| COMMENTS | VARCHAR2(4000) | YES | Comments or descriptions of the job. |
| FLAGS | NUMBER | NO | Flags of the job. |
| RESTARTABLE | VARCHAR2(5) | NO | Whether the job can be restarted. |
| CONNECT_CREDENTIAL_OWNER | VARCHAR2(128) | NO | Owner of the connection credentials. |
| CONNECT_CREDENTIAL_NAME | VARCHAR2(128) | NO | The name of the connection credential. |
Sample query
View the running status of scheduler jobs accessible to the current user.
obclient [SYS]> SELECT JOB_NAME, ENABLED, NEXT_RUN_DATE, STATE, LAST_START_DATE FROM SYS.USER_SCHEDULER_JOBS;
The query result is as follows:
+-------------------------------------+---------+-------------------------------------+-----------+-------------------------------------+
| JOB_NAME | ENABLED | NEXT_RUN_DATE | STATE | LAST_START_DATE |
+-------------------------------------+---------+-------------------------------------+-----------+-------------------------------------+
| ASYNC_GATHER_STATS_JOB_PROC | 1 | 21-MAR-25 04.08.43.845933 PM +08:00 | SCHEDULED | 21-MAR-25 03.53.43.847413 PM +08:00 |
| FRIDAY_WINDOW | 1 | 21-MAR-25 10.00.00.000000 PM +08:00 | NULL | NULL |
| JOB$_1125899907365728 | 1 | 21-MAR-25 04.01.33.000000 PM +08:00 | SCHEDULED | 21-MAR-25 04.01.25.001621 PM +08:00 |
| MONDAY_WINDOW | 1 | 24-MAR-25 10.00.00.000000 PM +08:00 | NULL | NULL |
| OPT_STATS_HISTORY_MANAGER | 1 | 22-MAR-25 01.53.43.845874 PM +08:00 | SCHEDULED | 21-MAR-25 01.53.43.847613 PM +08:00 |
| SATURDAY_WINDOW | 1 | 22-MAR-25 10.00.00.000000 PM +08:00 | NULL | NULL |
| SCHEDULED_TRIGGER_DUMP_DATA_DICT | 1 | 21-MAR-25 05.54.00.000000 PM +08:00 | SCHEDULED | 21-MAR-25 03.54.00.001459 PM +08:00 |
| SCHEDULED_TRIGGER_PARTITION_BALANCE | 1 | 22-MAR-25 12.00.00.000000 AM +08:00 | SCHEDULED | 21-MAR-25 12.00.00.001495 AM +08:00 |
| SPM_STATS_MANAGER | 1 | 22-MAR-25 01.00.00.000000 AM +08:00 | SCHEDULED | 21-MAR-25 01.00.00.002031 AM +08:00 |
| SUNDAY_WINDOW | 1 | 23-MAR-25 10.00.00.000000 PM +08:00 | NULL | NULL |
| THURSDAY_WINDOW | 1 | 27-MAR-25 10.00.00.000000 PM +08:00 | SCHEDULED | 20-MAR-25 10.00.00.001965 PM +08:00 |
| TUESDAY_WINDOW | 1 | 25-MAR-25 10.00.00.000000 PM +08:00 | NULL | NULL |
| WEDNESDAY_WINDOW | 1 | 26-MAR-25 10.00.00.000000 PM +08:00 | SCHEDULED | 19-MAR-25 10.00.00.002020 PM +08:00 |
+-------------------------------------+---------+-------------------------------------+-----------+-------------------------------------+
13 rows in set
