Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • This is from Temi Oracle
  • scripts to take listener.log backup Linux/Unix
  • The most important Tuning Notes Oracle
  • eplan9i.sql Oracle
  • SQL_PROFILE – I explaination Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • process id based files and processes Linux/Unix
  • Facts about SCN and Rollback Segment Oracle
  • Oracle Release Explaination Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • switchlogfile.sh Linux/Unix
  • Remove DOS CR/LFs (^M) 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

  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Resolving RMAN Hung Jobs Oracle
  • online_bkup.sql Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • Composite Index creation tip from Vivek Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • Read CSV file using PySpark Python/PySpark
  • Jai Shree Ram Linux/Unix
  • Roles and Stored Procs II Oracle
  • oracle_env_10g_CADEV Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • fuser to check who is using diretory Linux/Unix
  • handling filenname with space Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme