Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Oracle 10g Wait Model Oracle
  • create database syntax Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Kernel Parameters for Solaris Linux/Unix
  • good note for shared pool tunnig Oracle
  • plan10g.sql good Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • move_arch_files.ksh Linux/Unix
  • Single character replacement in Unix Linux/Unix
  • How to know Number of CPUs on Sun Box Linux/Unix
  • SQLPLUS COPY command Precautions. Oracle
  • Debugging Shell FIles Linux/Unix
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • New OFA for 11g Oracle

eplan.sql

Posted on 02-Aug-2005 By Admin No Comments on eplan.sql

truncate table plan_table;

EXPLAIN PLAN

SET STATEMENT_ID = ‘pvm’ FOR

select distinct owner, segment_name, segment_type

from dba_extents where file_id = &filid

and &blkid between block_id and block_id+blocks-1;

— syntax for viewing information from plan_table

SELECT LPAD(‘ ‘,2*(LEVEL-1))||operation||’ ‘||options ||’ ‘||object_name ||’ ‘|| DECODE(id, 0, ‘Cost = ‘||position) “Query Plan”

FROM plan_table

START WITH id = 0 and statement_id = ‘pvm’

CONNECT BY PRIOR id = parent_id AND statement_id =’pvm’;

Oracle, SQL scripts

Post navigation

Previous Post: refre.sql
Next Post: block_ident.sql

Related Posts

  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • Finding locked objects Oracle
  • Oracle Material from OTN Oracle
  • Explain Plan Output 2 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
  • scp with ssh2 Linux/Unix
  • How to see which patches are applied. Oracle
  • Jai Shree Ram Oracle
  • kill all processes from specific user in solaris. Linux/Unix
  • reset Sequence Oracle
  • sid_wise_sql.sql Oracle
  • Python class import from different folders Python/PySpark
  • import-export with multiple files Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme