Re: introspecting stored procedure parameters?



On Fri, 27 Jul 2007 19:22:30 GMT, Mark Harrison <mh@xxxxxxxxx> wrote:

I need some python wrappers for some stored procedures and would
like to generate these automatically by introspecting the database
to get the names of procedures, functions, and their parameters.

Any clues as which tables to look at, and any other hints
are most appreciated.

example python function, using the cx_Oracle package:

def myproc(self,name,address,phone):
r=self.cursor.callproc('myproc',[name,address,phone])
return 0

Many TIA!
Mark

Usually the answer to many questions is version dependent, so not
including a version is not very useful to get a response.
Secondly, you need to be aware of the DICT view which contains a
complete online description of all data dictionary views.
This would result in ALL_ARGUMENTS to come up.
You could also consider to use the dbms_describe package.

--
Sybrand Bakker
Senior Oracle DBA
.



Relevant Pages

  • Re: introspecting stored procedure parameters?
    ... like to generate these automatically by introspecting the database ... Any clues as which tables to look at, ... After all Usenet is a volunteer ...
    (comp.databases.oracle.misc)
  • Re: a row-level operator for copying?
    ... Mark Harrison schrieb: ... like to generate these automatically by introspecting the database ... Any clues as which tables to look at, ...
    (comp.databases.oracle.misc)
  • Re: [Full-Disclosure] [SHATTER Team Security Alert] Multiple vulnerabilities in Oracle Database Serv
    ... Multiple vulnerabilities in Oracle Database Server ... > and Esteban Martinez Fayo of Application Security, ... > DBMS_REPCAT package ...
    (Full-Disclosure)
  • Re: perl MySQL using DBI - security issue
    ... Not sure if it's the best way, but the way I do it is to have that data stored in a config file that is owned by a dummy user and only readable by that user. ... All programs that need the database then have to be setuid that dummy user and then use the database package, 'drop' privs and then exit if privs can be regained. ... Allowing people to use these your DB-based code as libraries now requires you to vett the code since your users can't setuid their scripts to the dummy user. ...
    (comp.lang.perl.misc)
  • SSIS Error: transport-level error...
    ... Fellow SSIS Users: ... Backup a database. ... The point is that when the package gets to step 5 (after step ... It sounds like a connection error. ...
    (microsoft.public.sqlserver.dts)