Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Handling LOB data in Oracle Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Oracle Identifiers Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Oracle Metalink useful notes Oracle
  • Histogram Overview Oracle
  • PLSQL Table Syntax 1 Oracle
  • Jai Shree Ram Oracle
  • plan10g.sql good Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • restarting network in linux Linux/Unix
  • find_string_in_database.sql Oracle
  • GSQ.sql Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • Absolute file number and relative file number Oracle

SQL_PLAN.sql for checking real execution plan

Posted on 20-Jul-2006 By Admin No Comments on SQL_PLAN.sql for checking real execution plan

set lines 132

set pages 1400

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=’4ftvbpzhwkfd8′ and child_number=0

CONNECT BY PRIOR id = parent_id and sql_id=’4ftvbpzhwkfd8′ and child_number=0;

Oracle, SQL scripts

Post navigation

Previous Post: Good Doc 28-JUN-2006
Next Post: How to choose Driver table in SQL statement

Related Posts

  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Roles and Stored Object behaviour Oracle
  • Sequence Resetting Oracle
  • Explain Plan Output 2 Oracle
  • pvm_pre_change.sql Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • 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

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Rman Notes -1 Oracle
  • compile_inv.sql Oracle
  • handling filenname with space Linux/Unix
  • Important Solaris Commands Linux/Unix
  • Add new columns in dataframe Python/PySpark
  • process id based files and processes Linux/Unix
  • Jai Shree Ram Linux/Unix
  • Load testing on Oracle 19C RAC with HammerDB Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme