Query the method for binding variable values in Oracle SQL statements, oraclesql

Source: Internet
Author: User

Query the method for binding variable values in Oracle SQL statements, 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; -- run the command on the faulty instance. Replace SQL _id by yourself, at this time, the SQL statement is still in the shared pool and is not replaced by aged outselect instance_number. , SQL _id, name, datatype_string, last_captured, value_string from dba_hist_sqlbind where SQL _id = 'hangzhou' order by LAST_CAPTURED, POSITION; -- replace SQL _id, Which is queried from awr.

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.