Custom Search
www.rocket99.com : Technical Guides Sybase Oracle UNIX Javascript


Technical Guides
Sybase
Oracle
UNIX
Javascript




Of Interest

Business Intelligence and Analytics



Oracle Training





Oracle » Monitoring » Tools »

Explain Plan: syntax

     







In many cases it is beneficial to see what indexes are being used in a query,
or if it is running a table scan. Here are the commands which will
cause the internal optimization details to display.





-- show query plan

set autotrace on



-- show query plan, without running the SQL!

set autotrace traceonly explain







Alternate Method: Below is sample syntax for explain plan ( getting output from the optimizer )


delete from plan_table
where statement_id = '9999';
commit;

COL operation FORMAT A30
COL options FORMAT A15
COL object_name FORMAT A20


/* ------ Your SQL here ------*/

EXPLAIN PLAN set statement_id = '9999' for
select count(1) from asia_monthly_pricing_data where order_id > 5000
/

/*----------------------------*/



select operation, options, object_name
from plan_table
where statement_id = '9999'
start with id = 0
connect by prior id=parent_id and prior statement_id = statement_id;


exit
/












Oracle : Related Topics

Oracle : Monitoring : What is going on in the database?
Oracle : Monitoring : Version information
Oracle : Monitoring : List free and used space in database
Oracle : Monitoring : List session information
Oracle : Monitoring : List names and default storage parameters for all tablespaces
Oracle : Monitoring : List information about tablespace to which datafiles belong
Oracle : Monitoring : List data file information
Oracle : Monitoring : List tablespace fragmentation information
Oracle : Monitoring : Check the current number of extents and blocks allocated to a seg
Oracle : Monitoring : Extent information
Oracle : Monitoring : Extent information for a table
Oracle : Monitoring : List segments with fewer than 5 extents remaining
Oracle : Monitoring : List segments reaching extent limits
Oracle : Monitoring : List table blocks, empty blocks, extent count, and chain block count
Oracle : Monitoring : Information about all rollback segments in the database
Oracle : Monitoring : Statistics of the rollback segments currently used by instance
Oracle : Monitoring : Active sorts in instance
Oracle : Monitoring : Index & constraint information
Oracle : Monitoring : List tables and synonyms
Oracle : Monitoring : Constraint columns
Oracle : Monitoring : Constraint listing
Oracle : Monitoring : Indexed column listing
Oracle : Monitoring : Trigger listing
Oracle : Monitoring : Tuning: library cache
Oracle : Monitoring : Tuning: data dictionary cache
Oracle : Monitoring : Tuning: buffer cache
Oracle : Monitoring : Tuning: sorts
Oracle : Monitoring : Tuning: rollback segments
Oracle : Monitoring : Tuning: physical file placement
Oracle : Monitoring : Archive Log Mode Status
Oracle : Monitoring : List log file information
Oracle : Monitoring : A Simple Monitoring Tool
Oracle : Monitoring : Connection Errors
Oracle : Monitoring : List Space Allocated by Table
Oracle : Monitoring : Tablespace types, and availability of data files
Oracle : Monitoring : List sessions with active transactions
Oracle : Monitoring : Tuning: dynamic extension
Oracle : Monitoring : Check the extents for a given segment

Sybase Web Site
Sybase iAnywhere Mobile Web Site
Oracle Enterprise Web Site



Get the latest Rocket99 news and tech tips via






Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site




Copyright © 2016 Stoltenbar Inc All Rights Reserved.