Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • USER_TABLES.Freelists Oracle
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • Oracle Statspack survival Guide Oracle
  • CPU speed on Linux Linux/Unix
  • Some useful Unix Commands Linux/Unix
  • Changing unix system clock when Oracle database is running. Oracle
  • Changing default shell Linux/Unix
  • get_vmstat.ksh for Solaris Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • CPU Core related projections AWS
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Read CSV File using Python Python/PySpark
  • To see only files and/or folders using LS command Linux/Unix
  • TRUNCATE table and disabling referential constraints. Oracle
  • scripts to take listener.log backup Linux/Unix

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

  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • Jai Shree Ram Oracle
  • To see how much time or progress of long transaction Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • How to stop OCSSD Daemon Oracle
  • All Hints for Oracle Databases 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
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • Sample WW22 listener.ora Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Session_info.ksh Linux/Unix
  • Ports used by Oracle Software Oracle
  • Sequence Resetting Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme