Re: How to get the parameter list of an Oracle SP at run-time



Bill,

you can do a 'describe' on the package or procedure and Oracle wll return
the list of parameters and their attributes, one per line.. Here are a
couiple of examples:

desc sys.close
PROCEDURE CLOSE
Argument Name Type In/Out Default?
------------------------------ ----------------------- ------ --------
OBJECTID NUMBER IN
EXCEPT SQLOLAPIEXCEPTION OUT

desc sys.evaluatebooleanexpression
PROCEDURE EVALUATEBOOLEANEXPRESSION
Argument Name Type In/Out Default?
------------------------------ ----------------------- ------ --------
OBJECTID NUMBER IN
EXPRESSION NVARCHAR2 IN
NAOUT NUMBER(38) OUT
ID NUMBER(38) IN
RET NUMBER(38) OUT
EXCEPT SQLOLAPIEXCEPTION OUT

HTH,

Michael
"Bill N" <billnielsen@xxxxxxxxxxx> wrote in message
news:42a034b4@xxxxxxxxxxxxxxxxxxxxxxxxx
> I'm using Delphi 6, ADO 2.7 and Oracle 9i. I would like to create a
> procedure where I pass a valid stored procedure name and it returns the
> parameters (parameter name, data type, precision (when required)).
>
> Anyone know how I can do this?
>
> Thanks,
> Bill N
>
>


.



Relevant Pages

  • Re: Dolphin 6 and scroll wheel
    ... Bill has told me that he will not be able to post the modified version until ... possible - it can be identified by an addendum to the package comment dated ... Peter ... Prev by Date: ...
    (comp.lang.smalltalk.dolphin)
  • Announcing MH at SourceForge and update to MH book
    ... move the MH archive and book to SourceForge. ... Bill has done most of the moving and reorganizing... ... tarball for each year of the mh-users mailing list, ... The Contributed Software package contains a tarball of the contrib ...
    (comp.mail.mh)
  • Re: Anyone use Talk Talk ?
    ... other phone and broadband providers, the usual suspects came up and I ... for as I seem to have shown an interest in a high usage package. ... The result was that we can have an 80gb limit p/m, ... I have been through the bill a couple of ...
    (uk.people.silversurfers)
  • Re: Just read the Economic Recovery Bill
    ... would have put through an equally dismal package. ... career politician, with some lame brained alternative to the looting, I mean ... You're right the problem is not R v D it is the career ... Bill, I have read that book and it was an eye opening experience. ...
    (rec.sport.golf)
  • Re: Quake1/Quake3 on Sarge
    ... agcc incompatibility with sarge vs what their package was working with(2.95 ... Suggestion on the Debina links one? ... > Bill Day wrote: ...
    (Debian-User)