Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • AWR settings- MMON is not taking snapshot. Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • Jai Shree Ram Oracle
  • Optimizer SORT Operations Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • DBMS_SQL for alter session. Oracle
  • xargs use Linux/Unix
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before 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

  • find_idle_cpu.sql Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • How to set Processes Parameter Oracle
  • create database link syntax 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • get_vmstat_solaris Oracle
  • For Search and replace unix command. Linux/Unix
  • ORACLE_SID in sqlplus Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • pvm_pre_change.sql Oracle
  • get_vmstat.ksh Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme