Oracle Execution Plan Bindings

Source: Internet
Author: User
Sometimes we query Gv$sql to see some running details for the same SQL different child cursors:

Selet T.inst_id,t.sql_id,t.child_number,t.plan_hash_value,t.last_active_time,t.elapsed_time/100000/decode ( t.executions,0,1,t.executions), t.elapsed_time/1000000,t.executions,t.sql_text from Gv$sql t where sql_id= ' xxx '

Through the above query if it involves the same SQL operation information is very different situation, basically go to the corresponding check, SQL is not a performance problem.

Some of the binding variables involved in SQL can be queried for gv$sql_bind_capture.

And the fixed problem of execution plan, this also according to the specific business scenario, for example the object data in the SQL is basically no change, especially like some historical analysis data.

Execution plan Fixed method: outline, SQL profile, SPM the difference between the three here I do not make a detailed statement. I'll do a demo for the SPM below.

Cond...

44017271

Oracle Execution Plan Bindings

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.