Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • export import with parameter file. Oracle
  • on IBM-AIX for display Linux/Unix
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Trace a SQL session from another session using ORADEBUG Oracle
  • Identical Dblink Issue… Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • Oracle Data Direct to TAPE Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • Sample WW22 listener.ora Oracle
  • create database syntax Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • scripts to take listener.log backup Linux/Unix
  • Rename Tablespace Oracle
  • Sequence Resetting Oracle
  • ipcs -l Linux/Unix

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

  • Another Tuning Article for subheap of shared pool Oracle
  • exp syntax in oracle 10g Oracle
  • Oracle 10g for solaris 10 Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • load SPM baseline from cursor cache Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • findobj.sql Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • find_idle_cpu.sql Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • tracksqltime.sql Oracle
  • process id based files and processes Linux/Unix
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • Search and replace editor command in vi Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme