查询Oracle sql语句中绑定变量值的方法

来源:互联网 发布:mysql大数据量查询 编辑:程序博客网 时间:2024/04/28 15:14
alter session set nls_date_format = 'yyyy-mm-dd,hh24:mi:ss';set linesize 400col sql_Id format a20col name format a20col datatype_string format a14col value_string format a20select sql_id,name, datatype_string, last_captured,value_string from v$sql_bind_capture where sql_id='dxfcacn4t4ppw' order by LAST_CAPTURED,POSITION;--在出问题的实例上执行,请自行替换sql_id,此时该sql还在shared pool中,没有被aged outselect instance_number,  sql_id,name, datatype_string, last_captured,value_string from dba_hist_sqlbind where sql_id='fahv8x6ngrb50'order by LAST_CAPTURED,POSITION;--请自行替换sql_id,此时是从awr中查询。

0 0