Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • To find all disk io ( EMC as well as local) Linux/Unix
  • Find Command Linux/Unix
  • Search and replace pattern Linux/Unix
  • How to change hostname in Linux Linux/Unix
  • lck.sql Oracle
  • Exadata Basics Oracle
  • Histogram Overview Oracle
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • Export Oracle data and Compress at same time Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • xargs use Linux/Unix
  • Creating never expiring DB user accounts in Oracle Oracle
  • crontab syntax Linux/Unix
  • db_status.sql 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

  • Sequence Resetting Oracle
  • CPU Core related projections AWS
  • cp_filesystem.sql Oracle
  • Important Script Method for tuning Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • 556976.1 Oracle Clusterware: Components installed 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
  • Good Site for Oracle Internals Oracle
  • Index Range Scan Oracle
  • Unix split command to split files Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • oracle 11g RAC on vmware Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • When to rebuld B-tree index Oracle
  • arch_configUOCIOTTO.ora Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme