Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve PL/SQL parameters 1

Status
Not open for further replies.

Diancecht

Programmer
Jan 8, 2004
4,042
0
0
ES
Hi all.

I'm trying to build a generic class to execute stored procedures.

What I want to achieve is to get the name of the procedure, manage to get the parameters and show a form to the user to get the input values.

Now I'm stuck on how to dynamically retrieve the parameter names and types. Looks like you need to know them from the procedure declaration.

What I'm trying to do is a kind of reflection with stored prodecures.

Does anyone know any hint to achieve this?

Thanks in advance,
Dian
 
I've found it, at least for Oracle, by querying the ALL_ARGUMENTS system table.

After some search, I don't think there's a way to do it from Java.

Cheers,
Dian
 
That's exactly what I needed.

Thank you very much.

Dian.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top