Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DBMS_Shared_pool pinning triggers Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Rename Tablespace Oracle
  • DBMS_JOB all example Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • cur_sql.sql Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Oracle Internal Good Websites 1 Oracle
  • online_ts_bkup.sql Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • ORA-3136 Oracle
  • OEM-Commnds Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix

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

  • column level grant syntax Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • AWR license Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Backup and Recovery Scenarios Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • useful dg links Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • find_string_in_database.sql Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • How to know current SID Oracle
  • Finding Oracle Patches with opatch Oracle
  • To see how much time or progress of long transaction Oracle
  • USE_NL and INDEX hints example Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme