Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • Search and replace pattern Linux/Unix
  • Recovering lost SYS password Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Debugging Shell FIles Linux/Unix
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • Rman Notes -1 Oracle
  • export import with parameter file. Oracle
  • How to analyze statspack or AWR report. Oracle
  • PLSQL Table Syntax 2 Oracle
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • Absolute file number and relative file number Oracle
  • configUOCIOTTO.ora Oracle
  • useful dg links 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

  • Transfer SQL Profiles from One database to other database. Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • create database syntax Oracle
  • Another export with Query Oracle
  • 10g oem configuration 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Another Tuning Article for subheap of shared pool Oracle
  • myfile Oracle
  • Rename Oracle Instance Name Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • Rename Tablespace Oracle
  • CPU speed on solaris Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme