简体   繁体   中英

How to get the list of parameters of the supplied Stored procedure in oracle 11g

我需要在oracle 11g中进行查询,以获取给定存储过程的所有参数,其数据类型和其模式(输入或输出)的列表。

You can take a look at ALL_ARGUMENTS or USER_ARGUMENTS Tables.

SELECT ARGUMENT_NAME,DATA_TYPE,IN_OUT 
FROM USER_ARGUMENTS WHERE OBJECT_NAME = UPPER('ProcedureName');

If you would like to get a view about the parameters of the procedure, just use

 SQL> desc <procedure name>;

If you would like to see the code for the procedure, then use (assuming you are logged in as the owner of the procedure)

 SQL> SELECT Text FROM User_Source WHERE Name ='PROCEDURENAME' ORDER BY Line;

try the following query

 select * from user_source where type = 'PROCEDURE'

This will give you all the stored procedures stored in your schema. Alternatively, you can also define type as Function or Packages to get required information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM