The RUN stored procedure is used to immediately run a job. Even failed jobs can be run. Running a job recalculates the next_date.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_JOB.RUN (
job IN BINARY_INTEGER,
force IN BOOLEAN DEFAULT FALSE);
Parameters
| Parameter | Description |
|---|---|
| job | The unique ID of the job to be modified. To find this ID, query the JOB column in the USER_JOBS or DBA_JOBS view. |
| force | If TRUE, the job is forcibly run. Otherwise, the job is run only if it is not already running. |
Examples
CALL DBMS_JOB.RUN(10100);
