what is explain plan?, given an example...

Answer Posted / rajesh venati

this will also work.

An Explain Plan is a tool that you can use to have Oracle
explain to you how it plans on executing your query.

ex:-
SQL> set autotrace on explain
SQL> select * from emp;

Execution Plan
----------------------------------------------------------
Plan hash value: 3956160932

--------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost
(%CPU)| Time |
--------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 14 | 518 | 3
(0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| EMP | 14 | 518 | 3
(0)| 00:00:01 |
--------------------------------------------------------------------------

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I save a stored procedure?

725


Why do we use joins in sql?

686


What do you mean by dbms? What are its different types?

744


How do you drop a trigger?

703


describe transaction-safe table types in mysql : sql dba

695






What is write ahead logging in sql server?

741


How does join work in sql?

724


Why is pl sql needed?

672


How does a self join work?

684


Can you skip header records while loading? : aql loader

718


Can you sum a count in sql?

733


How do you write an index?

700


Differentiate between sga and pga.

875


How do I view a view in sql?

693


What is trigger explain it?

733