Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Drop specific SQL plan baseline – spm Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • Default User Profile Oracle
  • Identical Dblink Issue… Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • DBMS_JOB all example Oracle
  • reset Sequence Oracle
  • SQL Server: How to see current transactions or requests SQL Server
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • Rownum with Order by Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • chk_space_SID.ksh Linux/Unix
  • Multiple listeners 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

  • Oracle Support Metalink ID 161818.1 Oracle
  • RAC 11g with vmware Oracle
  • Difference between SYNC and AFFIRM Oracle
  • alter database backup controlfile to trace Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Rman Notes -1 Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Remove duplicate rows from table Oracle
  • sesswait.sql Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • get_vmstat_solaris Oracle
  • GSQ.sql Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • get_aix_vmstat.ksh Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme