Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: dbms_job

Re: dbms_job

From: Jeremy <jeremy0505_at_gmail.com>
Date: Tue, 29 Aug 2006 14:11:26 +0100
Message-ID: <MPG.1f5e4d57d8726c3e98a282@news.individual.net>


In article <1156810269.022526.171550_at_m73g2000cwd.googlegroups.com>, rjgst3 says...
> I'm fairly new as creating dbms_job but I feel that what I'm trying to
> do is fairly simple. Heres what I have:
>
> VARIABLE b_job number
>
> BEGIN
> DBMS_JOB.SUBMIT(JOB => :b_job,
> WHAT => 'insert into tbl select * from test_data;',
> NEXT_DATE => sysdate,
> INTERVAL => 'sysdate+1');
> COMMIT;
> End
>
> This will not commit, and I get an 'Invalid Sql'. Granted, the sql in
> the example is genric, I confirmed 3 times that the insert sql
> statement is correct.....Any help/ideas?
>
>

I don't think I have ever seen an "Invalid SQL" - is there perchance an error number also listed?

Your final END needs a ;

-- 
jeremy
Received on Tue Aug 29 2006 - 08:11:26 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US