Имею скрипт и выглядит он так:
declare
cursor activejobs is
select 'begin dbms_scheduler.drop_job('''||JOB_name||''',force=>true); end;' as scr from dba_scheduler_running_jobs where job_name like '%NTFN%';
begin
for actjob in activejobs loop
execute immediate actjob.scr;
end loop;
end;
/
С точки зрения синтаксиса, все написано вроде верно, но мне выдает ошибку:
SQL*Plus: Release 11.2.0.2.0 Production on Tue Dec 24 17:21:23 2019
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
declare
*
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-06512: at line 6
Вопрос, где я не прав? Второй день сижу, думаю.