在 JOB SCHEDULER 的 job_action 中,我有以下 SQL
'BEGIN
ALTER TRIGGER AFTERIUDSETTLEMENTS DISABLE;
ALTER TRIGGER AFTERIUDLIQUIDATIONSDETAILS DISABLE;
UPDATE APPOINTSOFCAS A SET INLD = (SELECT COUNT(*) FROM LIQUIDATIONSDETAILS LD WHERE A.CUSTOMERID = LD.CUSTOMERID AND A.ID = LD.APPOINTOFCAID AND A.KINDCONTROLID = LD.KINDCONTROLID);
UPDATE APPOINTSOFCAS A SET INSD = (SELECT COUNT(*) FROM SETTLEMENTS S WHERE A.CUSTOMERID = S.CUSTOMERID AND A.ID = S.APPOINTOFCAID AND A.KINDCONTROLID = S.KINDCONTROLID);
COMMIT;
ALTER TRIGGER AFTERIUDSETTLEMENTS ENABLE;
ALTER TRIGGER AFTERIUDLIQUIDATIONSDETAILS ENABLE;
END;'
但运行后作业失败并出现以下错误:
ORA-06550: γραμμή 2, στήλη 29:
PLS-00103:在预期以下情况之一时遇到符号“ALTER”:
begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
συνέχεια close current delete fetch lock insert open
rollback savepoint set sql execute commit forall merge pipe
οριστική διαγραφή
可以在 JOB SCHEDULER 中禁用或启用触发器吗?