Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Shuffle an array PHP/MYSQL/Wordpress
  • Deleting first line and lastline of a file using sed Linux/Unix
  • More info about /proc folder and its relation with processes. Linux/Unix
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Oracle Internal Good Websites 1 Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • Important Solaris Commands Linux/Unix
  • VIvek Encryption Package and Its Usage Oracle
  • Read CSV file using PySpark Python/PySpark
  • How to remove blank lines using vi editor command Linux/Unix
  • Changing default shell Linux/Unix
  • Paste command syntax Linux/Unix
  • Very Good Oralce Internal Tuning Book Oracle
  • Search and Replace vi editor command. Linux/Unix

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

  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • Good Site for Oracle Internals Oracle
  • Finding locked objects Oracle
  • sql_plan9i.sql 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • find_open_cur.sql Find open cursorts per session Oracle
  • Nice notes on wait events Oracle
  • find_idle_cpu.sql Oracle
  • oradebug ipcrm ipcs Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • SQL_PROFILE – I explaination Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • db_status.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme