Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • To see mem usage and CPU usage system wide. Linux/Unix
  • Renaming Oracle Instance Name Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • perf_today.sql Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • How to set Processes Parameter Oracle
  • metalink all dynamic view reference notes. Oracle
  • Database logon trigger issue Oracle
  • process id based files and processes Linux/Unix
  • How to choose Driver table in SQL statement Oracle
  • get_vmstat_linux Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • Good notes on Oracle Events Oracle
  • logminer and my_lbu 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

  • Another export with Query Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • create PLAN_TABLE command. Oracle
  • Remove duplicate rows from table Oracle
  • Finding locked objects 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • To find all disk io ( EMC as well as local) Linux/Unix
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • find_string_in_database.sql Oracle
  • switchlogfile.sh Linux/Unix
  • find_open_cur.sql Find open cursorts per session Oracle
  • Goldengate Tutorial Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme