-
[펌] v$sql_bind_capture - 바인드 변수값 확인DBMS/Oracle 2008. 10. 8. 10:25반응형
변수값
10g 이전에서는 trace로 확인할 수 밖에 없었다.
select sesion.sid,
sesion.username,
sesion.sql_id,
sesion.sql_child_number,
sql_bind_capture.name,
sql_bind_capture.value_string
from v$sql_bind_capture sql_bind_capture, v$session sesion
where sesion.sql_hash_value = sql_bind_capture.hash_value
and sesion.sql_address = sql_bind_capture.address
and sesion.username is not null ;
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 theWHERE
orHAVING
clauses of the SQL statement.Bind capture is disabled when the
STATISTICS_LEVEL
initialization parameter is set toBASIC
. This view can be joined withV$SQLAREA
on (HASH_VALUE
,ADDRESS
) and withV$SQL
on (HASH_VALUE
,CHILD_ADDRESS
).
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2114.htm반응형'DBMS > Oracle' 카테고리의 다른 글