The BROKEN stored procedure is used to set the broken flag. Jobs in a broken state will not be scheduled.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_JOB.BROKEN (
job IN BINARY_INTEGER,
broken IN BOOLEAN,
next_date IN DATE DEFAULT SYSDATE);
Parameters
| Parameter | Description |
|---|---|
| job | The unique ID of the job to be modified. To find this ID, query the JOB column of the USER_JOBS or DBA_JOBS view. |
| broken | Specifies whether to mark the job as broken or not. TRUE indicates that the job is marked as broken; FALSE indicates that the job is not marked as broken. |
| next_date | The next date on which the job will run. |
Considerations
Before submission, the job will not be processed by the background job queue.
If a job fails to execute for 16 consecutive times, it will be automatically marked as broken and then stopped.
