Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Execute Store Procedure in Oracle
Hi Hamid
Try this - this is job submit example, but I am sure that you can change it to whatever your data types and variables are:
set serverout on size 1000000
declare
l_job_id binary_integer;
begin
dbms_job.submit(l_job_id, <here comes "what" of the job>); -- other
parameters are optional and have default values
dbms_output.put_line ('Job ID:' || l_job_id);
end;
/
HTH Kind regards
Kresimir Fabijanic
Hamid Alavi wrote:
>List,
>
>Is any body know how you can execute an store procedure from SQLPLUS and get
>the output parameter from store procedure.
>I did EXECUTE sp_name(par1); from sqlplus and get error even call is the
>same, do I have to define any Variable or what?
>I can see the output thru the dbms_output but I need to see the output from
>SQLPLUS
>
>Thanks,
>
>Hamid Alavi
>
>Office : 818-737-0526
>Cell phone : 818-416-5095
>-------------------------
>
>
>
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Fri Jun 04 2004 - 18:55:30 CDT
![]() |
![]() |