Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Physical Standby switchover with session active Oracle
  • Oracle Standby Database Library Index from Metalink Oracle
  • xargs use Linux/Unix
  • My Minimum Tuning Programs Oracle
  • newupload.html PHP/MYSQL/Wordpress
  • Exadata Basics Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • Oracle Data Direct to TAPE Oracle
  • create trigger syntax Oracle
  • Monitor and Trace Unix processes using truss Linux/Unix
  • Another export with Query Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • Goldengate document from Porus Oracle
  • V$transaction notes for finding XID composition. Oracle
  • Flowers Resize datafiles Oracle

How to find the real execution plan and binds used in that explain plan in Oracle 10g??

Posted on 09-Jun-2006 By Admin No Comments on How to find the real execution plan and binds used in that explain plan in Oracle 10g??

Step-1 : Find the Query and its SQL_ID to trace from AWR reports.

Step-2 : Execute following query to find real execution plan:

SELECT LPAD(‘ ‘,2*(LEVEL-1))||operation||’ ‘||options ||’ ‘||object_name ||’ ‘|| DECODE(id, 0, ‘Cost = ‘||position)

“Query Plan”

FROM v$sql_plan

START WITH id = 0 and sql_id=’8ska10yfjx4b5′

CONNECT BY PRIOR id = parent_id and sql_id=’8ska10yfjx4b5′;

Step-3 : To find what were the real bind varialbles query the following:

select name, datatype_string, value_string

from v$sql_bind_capture

where sql_id = ‘8ska10yfjx4b5’;

Oracle, SQL scripts

Post navigation

Previous Post: How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep)
Next Post: How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile)

Related Posts

  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Set Role explaination. Oracle
  • SQL_PROFILE – I explaination Oracle
  • Monitor Long Running Job Oracle
  • SYSOPER Mystery Oracle
  • tblwopk.sql tablewopk.sql Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Implementing Listener Security Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • Generate SSH without password authentication. Linux/Unix
  • CPU Core related projections AWS
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • oracle fast start failover best practice Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme