Oracle 视图 ALL_OPBINDINGS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图ALL_OPBINDINGS是Oracle目录视图,其中包含有关Oracle调用表/视图和PL/SQL存储过程/函数/包的站点绑定信息。用户可以使用该视图来检索PL/SQL代码中特定变量的站点绑定信息。该视图比较有用,可以帮助查询分析师检查他们是否正确地设置变量绑定,这有助于提高性能。
使用ALL_OPBINDINGS视图进行具体步骤如下:
1. 使用SQL*Plus连接到Oracle数据库。
2. 执行以下查询:
select * from all_opbindings where bindvar_name=’bind_varname’
3. 结果显示绑定变量的详细信息:
BINDVAR_NAME 表示绑定的变量的名称。
OWNER 表示拥有该PL/SQL块的用户的名称。
PLSQL_UNIT_TYPE 表示PL/SQL单元的类型:TABLE / VIEW / PACKAGE / PROCEDURE / FUNCTION /TYPE。
PLSQL_UNIT_OWNER 表示PL/SQL对象的所有者。
PLSQL_UNIT_NAME 表示PL/SQL单元的名称。
POSITION 表示变量在PL/SQL单元内的位置。
DATA_TYPE 表示变量的数据类型。
DATA_LENGTH 表示变量的长度bin。
DATA_SCALE 表示变量的比例因子。
官方英文解释
ALL_OPBINDINGS describes the binding functions and methods on the operators accessible to the current user.
Related Views
DBA_OPBINDINGSdescribes the binding functions and methods on all operators in the database.USER_OPBINDINGSdescribes the binding functions and methods on the operators owned by the current user.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
|
| Owner of the operator |
|
|
| Name of the operator |
|
|
| Binding number of the operator |
|
| Name of the binding function or method as specified by the user | |
|
| Name of the schema of the return type if the return type of the binding is an object type | |
|
| Name of the return type | |
|
| If the operator was created See Also: the | |
|
| If the operator was created See Also: the | |
|
| Property of the operator binding:
|
See Also:
“DBA_OPBINDINGS”
“USER_OPBINDINGS”
编辑:一起学习网
标签:变量,视图,绑定,单元,名称