Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Listing procedure parameters in PL/SQL

I am able to retrieve a list of all procedures by querying dba_procedures. However I am only able to extract the procedure names. But I also need their parameters.

Now, I know that I can access the "text source of the stored objects accessible to the current user" by querying the all_source table.

However is there any other way to retrieve the parameters of a procedure?

like image 871
JB2 Avatar asked Jul 05 '26 17:07

JB2


1 Answers

You can query the parameters using SYS.ALL_ARGUMENTS Table:

SELECT * FROM SYS.ALL_ARGUMENTS WHERE 
  PACKAGE_NAME = '<null_or_package_name>' AND 
  OBJECT_NAME = '<procedure_name>';
like image 187
road242 Avatar answered Jul 10 '26 05:07

road242



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!