I am looking for a way to get metadata from an Oracle store procedure, such as input/output parameters and their types.
I did try DESC but it is not working:
stmt = conn.createStatement();
ResultSet rs1 = stmt.executeQuery("desc pack.procname");
while ( rs1.next() ) {
System.out.println(rs1.getString(1));
}
Any ideas on what approach to use to get the input/output parameters?
Thanx for your time.
Try the following statement:
Depending on the schema the package belongs to, you might need to use the view _ALL_ARGUMENTS_ or _DBA_ARGUMENTS_ instead.