ORA-39053: parameter or attribute string must be defined for a string job
Cause: The job being defined cannot be started because it is missing the specified definition.
Action: Specify the omitted parameter or attribute before starting the job.
ORA-39053错误是一个Oracle数据库内部错误,它会在用户尝试创建一个字符串作业时引发。
使用一下命令来创建一个字符串类型的作业:
BEGIN
DBMS_JOB.SUBMIT_JOB(
JOB => str_job,
WHAT => string;
END;
可能会引发ORA-39053错误,因为用户尚未定义str_job的参数或属性。
1.使用以下代码对作业参数/属性进行定义:
BEGIN
DBMS_JOB.DEFINE_STRING_JOB(
STR_JOB => str_job,
PARAMS => ”,
COMMENTS => ”
);
END;
2.用DBMS_JOB.SUBMIT_JOB来提交此工作:
BEGIN
DBMS_JOB.SUBMIT_JOB(
JOB => str_job,
WHAT => string
);
END;