Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • checking connectivity between two servers Linux/Unix
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • v$backup.status information Oracle
  • Python class import from different folders Python/PySpark
  • Temporary Tablespace Information and restriction. Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Drop database in Oracle 10g Oracle
  • purge_trc.sh Linux/Unix
  • Oracle 10g Wait Model Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • USE_NL and INDEX hints example Oracle
  • Proc Compilation Oracle
  • export import with parameter file. Oracle
  • Building Our Own Namespaces with “Create Context” Oracle

sql_plan9i.sql

Posted on 10-May-2008 By Admin No Comments on sql_plan9i.sql

set lines 132

set pages 1400

accept v_address prompt ‘Enter ADDRESS :’

accept v_hash_value prompt ‘Enter HASH VALUE :’

select sql_text from v$sqltext

where address=’&v_address’

and hash_value=’&v_hash_value’

order by piece;

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 address=’&v_address’ and hash_value=’&v_hash_value’ and child_number=0

CONNECT BY PRIOR id = parent_id and address=’&v_address’ and hash_value=’&v_hash_value’ and child_number=0;

Oracle, SQL scripts

Post navigation

Previous Post: find_idle_cpu.sql
Next Post: find_log_switch.sql Find log switches in graphical manner

Related Posts

  • CTAS with LONG Column for 9i and higher Oracle
  • Error Handling in Proc Oracle
  • Ports used by Oracle Software Oracle
  • Very Good Oralce Internal Tuning Book Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Parallel DML Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • ORA-01220 Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • plan10g.sql Oracle
  • create PLAN_TABLE command. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme