Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • catall.sh Linux/Unix
  • purge_trc.sh Linux/Unix
  • Oracle Metalink useful notes Oracle
  • cur_sql.sql Oracle
  • Histogram Overview Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • Oracle Identifiers Oracle
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • DBMS_JOB all example Oracle
  • Building Our Own Namespaces with “Create Context” Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • All Hints for Oracle Databases Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle

eplan9i.sql

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

set pages 300

set lines 100

truncate table plan_table;

EXPLAIN PLAN

SET STATEMENT_ID = ‘pvm’ FOR

SELECT * FROM emp;

SELECT rpad(cardinality, 10, ‘ ‘) || ‘ ‘ || rpad(cost, 10, ‘ ‘) || ‘ ‘ ||

lpad(‘ ‘,level-1)||operation||’ ‘|| options||’ ‘||object_name “Rows Cost Plan”

FROM PLAN_TABLE

CONNECT BY prior id = parent_id

AND prior statement_id = statement_id

START WITH id = 0

AND statement_id = ‘pvm’

ORDER BY id;

Oracle, SQL scripts

Post navigation

Previous Post: Rename Oracle Instance Name
Next Post: crtgr.sql /* For creating trigger from data dictionary */

Related Posts

  • GSQ.sql Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • Wait.sql Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • Alter procedure auditing 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
  • oracle 10g on linux Linux/Unix
  • Remove DOS CR/LFs (^M) Linux/Unix
  • eplan.sql Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • CPU Core related projections AWS
  • Rman Notes -1 Oracle
  • Find sort details from Db find_sort.sql Oracle
  • DBMS_JOB all example Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme