查詢Oracle sql語句中綁定變數值的方法,oraclesql

來源:互聯網
上載者:User

查詢Oracle sql語句中綁定變數值的方法,oraclesql

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中查詢。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.