Oracle 11gR1
V$SQL_BIND_CAPTURE
displays information on bind variables used by SQL cursors. Each row in the view contains information for one bind variable defined in a cursor. This includes:
· Reference to the cursor defining the bind variable
(hash_value
, address
) for the parent cursor and (hash_value
, child_address
) for the child cursor.
· Bind metadata
Name, position, datatype, character set ID, precision, scale, and maximum length of the bind variable.
· Bind data
One of the bind values used for the bind variable during a past execution of its associated SQL statement. Bind values are not always captured for this view. Bind values are displayed by this view only when the type of the bind variable is simple (this excludes LONG, LOB, and ADT datatypes) and when the bind variable is used in the WHERE
or HAVING
clauses of the SQL statement.
Bind capture is disabled when the STATISTICS_LEVEL
initialization parameter is set to BASIC
. This view can be joined with V$SQLAREA
on (HASH_VALUE
, ADDRESS
) and with V$SQL
on (HASH_VALUE
, CHILD_ADDRESS
).
Column | Datatype | Description |
|
| Address of the parent cursor |
|
| Hash value of the parent cursor in the library cache. The hash value is a fixed index for the view and should always be used to speed up access to the view. |
|
| SQL identifier of the parent cursor in the library cache |
|
| Address of the parent cursor |
|
| Child cursor number |
|
| Name of the bind variable |
|
| Position of the bind variable in the SQL statement |
|
| If the binding is performed by name and the bind variable is duplicated, then this column gives the position of the primary bind variable. |
|
| Internal identifier for the bind datatype |
|
| Textual representation of the bind datatype |
|
| National character set identifier |
|
| Precision (for numeric binds) |
|
| Scale (for numeric binds) |
|
| Maximum bind length |
|
| Indicates whether the bind value was captured ( |
|
| Date when the bind value was captured. Bind values are captured when SQL statements are executed. To limit the overhead, binds are captured at most every 15 minutes for a given cursor. |
|
| Value of the bind represented as a string |
|
| Value of the bind represented using the |
No comments:
Post a Comment