Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Export Import with QUERY Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • CPU Core related projections AWS
  • Optimizer SORT Operations Oracle
  • Oracle Material from OTN Oracle
  • Search and replace editor command in vi Linux/Unix
  • How to analyze statspack or AWR report. Oracle
  • Building Our Own Namespaces with “Create Context” Oracle
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Oracle Standby Database Library Index from Metalink Oracle
  • currwait.sql Oracle
  • Recovering lost SYS password Oracle
  • Difference between SYNC and AFFIRM Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • pvm_pre_change.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

  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • Library cahe Latches and internal explaination Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • Exadata Basics Oracle
  • DBA_HIST_SQLSTAT contents 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • Drop database in Oracle 10g Oracle
  • Rename Tablespace Oracle
  • xargs use Linux/Unix
  • Find Stale DR Physical Standby Oracle
  • Jai Shree Ram Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • online_ts_bkup.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme