Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • How to remove blank lines using vi editor command Linux/Unix
  • ipcs -l Linux/Unix
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Convert multiple rows to single column Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • sesswait.sql Oracle
  • How to know current SID Oracle
  • online_ts_bkup.sql Oracle
  • Pending Distributed Transations Oracle
  • Oracle Statspack survival Guide Oracle
  • Create type and Grant on it. Oracle
  • Oracle Support Metalink ID 161818.1 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 Plan Hash value fphv.sql Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Oracle Metalink useful notes 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Jai Shree Ram Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • proper cpu stats Linux/Unix
  • Debugging Shell FIles Linux/Unix
  • Find all users who have DML privileges Oracle
  • Implementation of key based authentications Linux/Unix
  • All Hints for Oracle Databases Oracle
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme