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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: A lazy connection!

RE: A lazy connection!

From: Naik, Sandesh S <sandesh.naik_at_qwest.com>
Date: Tue, 24 Jul 2001 12:12:03 -0700
Message-ID: <F001.00353A74.20010724115548@fatcity.com>

Thank you friends,
 But we finally figured out. Actually the OUT parameter is procedure is useless as Shailesh pointed out , there is no variable to put the OUT value in auto-execute.
 So this is what we did. Kept the OUT parameter ( we could took it out but developer insisted to keep it as they might use that procedure in Pro*C) in the procedure and rewrote the submit job script like this.

declare
  jobno number;
begin
 dbms_job.submit(jobno,'declare errno number; begin l_load_weekly_aps.p_load_ocn(errno); end;',sysdate,'sysdate+1'); end;

Now it submits and while auto-executing through dbms_job.run also finds the variable to put the OUT parameter valus, but we still can not see this value.
 But hey, it solves the problems job executes fine without any of those errors I was getting before.
 Thanks everybody for the input and replies.

Sandesh

-----Original Message-----
Sent: Tuesday, July 24, 2001 6:50 AM
To: 'sandesh.naik_at_qwest.com'

I may be missing something but do you need the : in front of errno.  

-----Original Message-----
Sent: 23 July 2001 19:13
To: Multiple recipients of list ORACLE-L

Dear List,
 I have a package which I want to execute using dba_jobs.  Within that package I run procedure which has one OUT parameter ( errno)  When I submit the job
declare
  jobno number;
errno number;
begin
 dbms_job.submit(jobno,'l_load_weekly_aps.p_load_ocn(:errno);',sysda te,'sysdate');
end;
It submits fine but when I try to run that job using exec dbms_job.run(52), it gives me following error. *
ERROR at line 1:

ORA-12011: execution of 1 jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 394
ORA-06512: at "SYS.DBMS_JOB", line 267
ORA-06512: at line 1

ORA-12012: error on auto execute of job 52 ORA-01008: not all variables bound

Anybody has any answers ?
 thanks for your help.
Sandesh

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Naik, Sandesh S
  INET: sandesh.naik_at_qwest.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Naik, Sandesh S
  INET: sandesh.naik_at_qwest.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Jul 24 2001 - 14:12:03 CDT

Original text of this message

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