Oracle 视图 ALL_SQLSET_BINDS 官方解释,作用,如何使用详细说明
本站中文解释
ALL_SQLSET_BINDS视图包含了该用户执行的SQL语句中所有的变量绑定信息。这种绑定的信息也叫参数绑定,也叫变量绑定。参数绑定是指在一段固定的SQL语句中指定变量并在后续执行该语句时,可以动态地改变变量值,而数据库不需要重新编译该语句。
任何用户都可以使用ALL_SQLSET_BINDS视图检查其已经执行的SQL语句的参数绑定信息。
要使用ALL_SQLSET_BINDS视图,需要执行SELECT语句,在SELECT语句中指定被查看的SQL执行ID和包含变量绑定信息的SQL文本。FROM子句引用ALL_SQLSET_BINDS视图来查看用户执行的SQL语句的变量绑定信息:
SELECT *
FROM all_sqlsets_binds
WHERE sql_exec_id = ‘1’
AND sql_text = ‘SELECT * FROM emp WHERE empno=:empno’;
官方英文解释
ALL_SQLSET_BINDS
displays the bind values associated with all SQL tuning sets accessible to the current user.
Related Views
-
DBA_SQLSET_BINDS
displays the bind values associated with all SQL tuning sets in the database. -
USER_SQLSET_BINDS
displays the bind values associated with the SQL tuning sets owned by the current user. This view does not display theSQLSET_OWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
Name of the SQL tuning set for the statement |
|
|
|
User name of the SQL tuning set owner |
|
|
|
ID of the SQL tuning set for the statement |
|
|
|
The database ID of the PDB |
|
|
|
SQL identifier of the parent cursor in the library cache |
|
|
|
The signature used when the |
|
|
|
Numerical representation of the SQL plan for the cursor. Comparing one |
|
|
|
Bind position |
|
|
|
Bind value. This column is |
|
|
|
Binds captured |
|
|
|
SQL sequence |
See Also:
-
“DBA_SQLSET_BINDS”
-
“USER_SQLSET_BINDS”