Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Monitor and Trace Unix processes using truss Linux/Unix
  • DBMS_STATS Metalinks Notes Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Optimizer SORT Operations Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • Facts about SCN and Rollback Segment Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • Convert multiple rows to single column Oracle
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • Roles and Stored Object behaviour 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

  • Rollback force for distributed transactions Oracle
  • How to choose Driver table in SQL statement Oracle
  • Rownum with Order by Oracle
  • Oracle 10g Wait Model Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Committing distributed transaction using commit force Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • UNderstand and eliminate Latch contention. Oracle
  • USER_TABLES.Freelists Oracle
  • longtx.sql Oracle
  • All Hints for Oracle Databases Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • Good notes on Oracle Events Oracle
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme