Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Strange error when dbms_job submitting (again)

BoneistMay 23 2007 — edited May 23 2007

Hi,

I'm desperately hoping someone can help me work out why my code is failing...

When I run the following code, it fails:

declare
lJob number;
l_dimension varchar2(30) := 'DIM_CCY';
ljobid number := 1;
begin
  DBMS_JOB.SUBMIT(lJob, 'olap_pkg.dimension_job_processing('||l_DIMENSION||','||lJobID||');');
end;

ORA-06550: line 1, column 127:
PLS-00357: Table,View Or Sequence reference 'DIM_CCY' not allowed in this context
ORA-06550: line 1, column 93:
PL/SQL: Statement ignored
ORA-06512: at "SYS.DBMS_JOB", line 79
ORA-06512: at "SYS.DBMS_JOB", line 136
ORA-06512: at line 6

But when I run this code, it works:

declare
lJob number;
l_dimension varchar2(30) := 'DIM_CCY';
ljobid number := 1;
begin
  DBMS_JOB.SUBMIT(lJob, 'olap_pkg.dimension_job_processing(''DIM_CCY'''||','||lJobID||');');
end;

Can anyone shed any light on this for me, please?

Message was edited by:
Boneist

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2007
Added on May 23 2007
2 comments
221 views