Methods for querying the values of bound variables in an Oracle SQL statement

Source: Internet
Author: User
Alter session Set Nls_date_format = ' Yyyy-mm-dd,hh24:mi:ss '; set linesize 400col sql_id format a20col name format A20col da tatype_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;--is executed on the problematic instance, please replace the sql_id yourself, At this point the SQL is still in the shared pool, not aged outselect instance_number,  sql_id,name, datatype_string, Last_captured,value_ String from Dba_hist_sqlbind the where sql_id= ' fahv8x6ngrb50 ' ORDER by last_captured,position;--please replace the sql_id yourself, and this is the query from the AWR.

Methods for querying the values of bound variables in an Oracle SQL statement

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.