Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • reset Sequence Oracle
  • Implementing Listener Security Oracle
  • Single character replacement in Unix Linux/Unix
  • Goldengate document from Porus Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • Implementing Listener Security Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • dbinv.sql Oracle
  • create PLAN_TABLE command. Oracle
  • SQL_PROFILE – I explaination Oracle
  • Find Stale DR Physical Standby Oracle
  • Locktree.sql Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • This is im telling Kishore 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

  • create trigger syntax Oracle
  • Find all users who have DML privileges Oracle
  • Generating XML from SQLPLUS Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Proc Compilation Oracle
  • perf_today.sql 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to see which patches are applied. Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • nfs mount command Linux/Unix
  • Jai Shree Ram Linux/Unix
  • xargs use Linux/Unix
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme