Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • When to rebuld B-tree index Oracle
  • cur_sql.sql Oracle
  • USE_NL and INDEX hints example Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • replace alphabets using sed Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • scripts to take listener.log backup Linux/Unix
  • useful dg links Oracle
  • Monitor Long Running Job Oracle
  • To see only files and/or folders using LS command Linux/Unix
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Sequence Resetting Oracle
  • setting prompt display with .profile Linux/Unix
  • Rollback force for distributed transactions Oracle
  • Flowers Resize datafiles 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

  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • How can I tell if ASO is installed ? Oracle
  • How to calculate PROCESSES parameter Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • sid_wise_sql.sql Further explaination 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Single character replacement in Unix Linux/Unix
  • FGA Part-I Oracle
  • Very clear article about oracle dataguard Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Processes Parameter decision Oracle
  • Recovering lost SYS password Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Read CSV file using PySpark Python/PySpark

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme