V$SQL_BIND_CAPTURE
As of Oracle 10g, view V$SQL_BIND_CAPTURE is available, which stores the contents of bind variables for the executed SQL statements. On this basis, the bind variable contents specified for an SQL statement can be determined with the following query:
SELECT
SUBSTR(SBC.NAME, 1, 10) BIND,
SUBSTR(SBC.VALUE_STRING, 1, 50) VALUE,
COUNT(*) "NUMBER"
FROM
V$SQL_BIND_CAPTURE SBC, V$SQL S
WHERE
S.SQL_TEXT LIKE '' AND
S.SQL_ID = SBC.SQL_ID
GROUP BY NAME, VALUE_STRING
ORDER BY 1, 2;
The bind variable contents are refreshed in V$SQL_BIND_CAPTURE at the earliest every 15 minutes. If you require a faster refresh for analysis purposes, you can temporarily set the underlying underscore parameter _CURSOR_BIND_CAPTURE_INTERVAL to a value lower than 900 seconds (-> the default 15 minutes) as follows:
ALTER SYSTEM SET "_CURSOR_BIND_CAPTURE_INTERVAL"=;
[@more@]
SELECT
SUBSTR(SBC.NAME, 1, 10) BIND,
SUBSTR(SBC.VALUE_STRING, 1, 50) VALUE,
COUNT(*) "NUMBER"
FROM
V$SQL_BIND_CAPTURE SBC, V$SQL S
WHERE
S.SQL_TEXT LIKE '
S.SQL_ID = SBC.SQL_ID
GROUP BY NAME, VALUE_STRING
ORDER BY 1, 2;
The bind variable contents are refreshed in V$SQL_BIND_CAPTURE at the earliest every 15 minutes. If you require a faster refresh for analysis purposes, you can temporarily set the underlying underscore parameter _CURSOR_BIND_CAPTURE_INTERVAL to a value lower than 900 seconds (-> the default 15 minutes) as follows:
ALTER SYSTEM SET "_CURSOR_BIND_CAPTURE_INTERVAL"=
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/18921899/viewspace-1017249/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 透過v$sql_bind_capture 檢視繫結變數。SQLAPT變數
- 前端【VUE】02-vue指令【v-html 、v-show、 v-if 、v-else、v-on、v-bind、v-for、v-model】前端VueHTML
- v$sql,v$sqlarea,v$sqltext區別SQL
- vue v-text,v-html,v-once,v-pre,v-cloak的使用VueHTML
- vue_o6_v-once、v-html、v-text、v-pre、v-cloak指令的使用VueHTML
- EMQ 文件 V1.0 V2.0 V3.0MQ
- v-if和v-show
- CANoe C-V2X Demo(V2I+V2V)演示視訊
- 維數定理(手推!):證明dim(v1)+dim(v2) = dim(v1+v2) + dim(v1∩v2)
- 1V升壓3V,1V升壓3.3V晶片,1V升壓5V升壓IC晶片
- v-html 、v-text({{}}) 、v-model的區別HTML
- v
- 1V升3V,1V升3.3V,1V升5V高電流,低功耗升壓晶片晶片
- 24v轉120v,24V轉150v/350v隔離變壓電源模組
- vue 的v-on與v-bindVue
- v-for,v-bink,綜合案例
- 1V升5V晶片,1V升5V電路圖規格書晶片
- Oracle9i中v$sql、v$sqlarea、v$sqltext、v$sql_plan的聯絡與區別OracleSQL
- android之support-v4、v7、v13的區別Android
- v-for
- (精華2020年5月4日更新) vue教程篇 v-text,v-html,v-once,v-pre,v-cloak的使用VueHTML
- Vue v-if以及 v-else 的使用Vue
- v-if和v-show的區別
- [vue] 常見用法之 v-html、v-text、v-model區別VueHTML
- React Router從V2/V3到V4的變化React
- v-if/v-show 條件渲染指令
- ESXI 遷移至KVM (V2V遷移)
- 12V轉80V/150V/350V電容充電隔離電源升壓模組
- 1V轉5V,1V轉3.3V升壓極大電流晶片,外圍極少晶片
- v-model
- v-bind
- 10.29 V$SESSMETRICSSM
- 10.30 V$SESSTAT
- 10.97 V$SYSSTAT
- 8.1.1 V$ ViewsView
- 10.17 V$SESSIONSession
- 10.82 V$STATNAME
- 9.183 V$ROLLNAME
- 9.184 V$ROLLSTAT