在行 2 上开始执行命令时出错:
declare
x int;
begin
SYS.DBMS_JOB.SUBMIT
(job => x, what => 'SP_Exec_Reprot(2,2,0,sysdate-1,sysdate,select to_number(to_char(sysdate-1,'fmww')) from dual,select to_number(to_char(sysdate,'fmww')) from dual);',
next_date => sysdate,
interval => 'trunc(sysdate)+1+2/24',----定时每天早上两点执行存储过程
no_parse => FALSE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is:'||to_char(x));
commit;
end;
错误报告:
ORA-06550: 第 7 行, 第 88 列:
PLS-00103: 出现符号 "FMWW"在需要下列之一时:
) , * & = - + < / > at in
is mod remainder not rem <an exponent (**)> <> or != or ~= >=
<= <> and or like LIKE2_ LIKE4_ LIKEC_ between || multiset
member SUBMULTISET_
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
declare
x int;
begin
SYS.DBMS_JOB.SUBMIT
(job => x, what => 'SP_Exec_Reprot(2,2,0,sysdate-1,sysdate,select to_number(to_char(sysdate-1,'fmww')) from dual,select to_number(to_char(sysdate,'fmww')) from dual);',
next_date => sysdate,
interval => 'trunc(sysdate)+1+2/24',----定时每天早上两点执行存储过程
no_parse => FALSE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is:'||to_char(x));
commit;
end;
错误报告:
ORA-06550: 第 7 行, 第 88 列:
PLS-00103: 出现符号 "FMWW"在需要下列之一时:
) , * & = - + < / > at in
is mod remainder not rem <an exponent (**)> <> or != or ~= >=
<= <> and or like LIKE2_ LIKE4_ LIKEC_ between || multiset
member SUBMULTISET_
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
解决方案 »
- 请问单机如何使用plsql developer
- 着急求plsql 示例代码,往数据库表里 用while插入10条记录
- 在Oracle9i中PRO*C的预编译命令是什么,需要写Makefile文件,急用
- 一天一夜没睡觉了,急死了!!!ORACLE数据库中有两个表不能插入数据,查询的时候需要几个小时,怎么办?经过检测,表也没有被锁!
- DELETE会造成I/O操作吗
- 一个关于存储过程的问题?
- 比较逊的问题,采用oracle数据库一定要安装orcle客户端运行时程序吗?
- 急急急,,,DBMS_SQL_Execute的问题???
- 请问有没有哪位大牛过了oracle dev的?dba和dev哪个好过?
- 奇怪问题!!!
- 谈谈提高oralce执行效率的问题
- ORACLE 恢复删除数据
what => 'SP_Exec_Reprot(2,2,0,sysdate-1,sysdate,select to_number(to_char(sysdate-1,''fmww'')) from dual,select to_number(to_char(sysdate,''fmww'')) from dual);',
错误报告:
ORA-06550: 第 1 行, 第 189 列:
PLS-00103: 出现符号 ","在需要下列之一时:
) intersect minus order union
ORA-06550: 第 1 行, 第 248 列:
PLS-00103: 出现符号 ","在需要下列之一时:
) intersect minus order union
ORA-06512: 在 "SYS.DBMS_JOB", line 79
ORA-06512: 在 "SYS.DBMS_JOB", line 136
ORA-06512: 在 line 4
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
SP_Exec_Reprot(2,2,0,sysdate-1,sysdate,0,0)这样就没问题
既可。