Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Export With Query Another Example. Oracle
  • How to start CRS manually Oracle
  • handling filenname with space Linux/Unix
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • Monitor Long Running Job Oracle
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • Oracle Identifiers Oracle
  • Order by with ROWNUM Oracle
  • Changing Instance Name ( No DB_NAME) Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • Find average Row Length and other table size calculation. metalink notes 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

  • Create type and Grant on it. Oracle
  • Drop tempfiles from database Oracle
  • executing Function from SQLPLUS prompt Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Virtual Indexes in Oracle 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
  • plan10g.sql good1 Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • Generate SSH without password authentication. Linux/Unix
  • cif crons Linux/Unix
  • GSQ.sql Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Locktree.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme