SQL 在 Oracle 中没有正确结束

SQL not properly ended in Oracle

我有一个 SQL 作业/调度程序,它在尝试执行时向我显示。

SQL Command not properly ended.

我的代码

BEGIN
dbms_scheduler.create_job(job_name => 'LBN_Service',
                          job_type => 'PLSQL_BLOCK',
                          job_action => '
                                         BEGIN
                                          update TBL_LBN_Data nr
                                          SET ISACTIVE = 0
                                          WHERE sysdate > nr.PERIODTO
                                          END;',
                          start_date => systimestamp,
                          repeat_interval => 'FREQ=DAILY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;',
                          enabled => TRUE);
 END;

Update 语句后需要一个分号

BEGIN
dbms_scheduler.create_job(job_name => 'LBN_Service',
                          job_type => 'PLSQL_BLOCK',
                          job_action => 'BEGIN
                                         update TBL_LBN_Data nr
                                         SET ISACTIVE = 0
                                         WHERE sysdate > nr.PERIODTO;
                                         END;',
                          start_date => systimestamp,
                          repeat_interval => 'FREQ=DAILY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;',
                          enabled => TRUE);
 END;