ORA-27359: duplicate reference to attribute string of job string ORACLE 报错 故障修复 远程处理

文档解释

ORA-27359: duplicate reference to attribute string of job string

Cause: The scheduler SET_JOB_ATTRIBUTES call had two or more references to a specific atrribute of a job.

Action: Eliminate the duplicate references and issue the call again.

ORA-27359 错误是一种编译错误,它发生在DBMS_SCHEDULER中,表示在为作业中定义的属性列表中有重复的属性。

官方解释

ORA-27359:”重复引用到作业的属性中”

出现此错误时一般是由于在为作业设置属性时将同一属性设置两次而导致的。

常见案例

假设一个用户为一个作业设置了DBMS_SCHEDULER.start_date两次,则会触发ORA-27359错误:

begin

dbms_scheduler.create_job (

job_name => ‘my_job’,

job_type => ‘PLSQL_BLOCK’,

job_action => ‘ BEGIN null; END;’,

start_date => ’10-mar-2021 18:00:00′,

start_date => ‘Jan 20 2021 18:00:00’

);

end;

一般处理方法及步骤

1.检查是否为作业设置了重复属性。

2.如果是,则移除重复属性,并重新提交作业,以避免再次触发此错误。


数据运维技术 » ORA-27359: duplicate reference to attribute string of job string ORACLE 报错 故障修复 远程处理