Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • CPU speed on Linux Linux/Unix
  • sess_server.sql Oracle
  • The most important Tuning Notes Oracle
  • Jai Shree Ram Oracle
  • lck.sql 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
  • rm_backup_arch_file.ksh Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • Generate SSH without password authentication. Linux/Unix
  • currwait.sql Oracle
  • Load SPM baseline from AWR Oracle
  • telnet listening 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

  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • Export Import with QUERY Oracle
  • Find all users who have DML privileges Oracle
  • create trigger syntax Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • moving lob object to other tablespace lob_mvmt.sql 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Drop all SPM baselines for SQL handle Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Display the top 5 salaries for each department using single SQL Oracle
  • block_ident.sql Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • nfs mount command Linux/Unix
  • good note for shared pool tunnig Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme