检索 PL/SQL 过程架构
我需要获取 PL/SQL 过程的参数定义。
在 MS SQL 上,我们使用 Information_schema.Parameters
; Oracle 中的对应项(如果有的话)是什么?
I need to get the parameter definitions of a PL/SQL procedure.
On MS SQL, we use Information_schema.Parameters
; what is the counterpart ( if any ) in Oracle?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
大多数(如果不是全部)相同数据可以在 Oracle 中从 ALL_ARGUMENTS 访问 数据字典表。
ALL_ARGUMENTS
显示您有权执行的所有过程的参数。USER_ARGUMENTS
显示您拥有的所有过程的参数。DBA_ARGUMENTS
显示数据库中存在的所有过程的参数,但您需要额外的权限才能访问DBA_*
视图。Most (if not all) of the same data can be accessed in Oracle from the ALL_ARGUMENTS data dictionary table.
ALL_ARGUMENTS
shows you the arguments for all the procedures that you have permission to execute.USER_ARGUMENTS
shows you the arguments for all the procedures that you own. AndDBA_ARGUMENTS
shows you the arguments for all the procedures that exist in the database but you need additional privileges to access theDBA_*
views.有关存储过程参数的大部分信息可以在 ALL_ARGUMENTS 中找到 和
USER_ARGUMENTS
中类似,DBA_ARGUMENTS
这是一个使用
USER_ARGUMENTS
的快速示例,它给出了输出..
正如您所看到的,它具有最有用的信息.. 但不显示 NOCOPY 提示。
为 null 的 ARGUMENT_NAME 是函数的“返回值”。ALL_
和 DBA_ 版本将有一个附加的 OWNER 列。
有关存储过程本身的其他信息可以在 ALL_PROCEDURES , ALL_PLSQL_OBJECT_SETTINGS 和 ALL_OBJECTS 取决于您要查找的详细程度。
Most of the information about stored procedure parameters can be found in ALL_ARGUMENTS and similarly in
USER_ARGUMENTS
andDBA_ARGUMENTS
Here is a quick sample using
USER_ARGUMENTS
which gives the output of..
As you can see it has most useful information.. but does not show the NOCOPY hint.
the ARGUMENT_NAME that is null is the 'return value' of the function
the ALL_ and DBA_ version will have an additional OWNER column.
additinal information about the stored procedure itself can be found in ALL_PROCEDURES , ALL_PLSQL_OBJECT_SETTINGS and ALL_OBJECTS depending on what level of detail you are looking for.