what is explain plan?, given an example...
Answer Posted / shivainduja
An explain plan is a representation of the access path that
is taken when a query is executed within Oracle.
SQL> explain plan for select * from emp2;
Explained.
SQL> select * from table (DBMS_XPLAN.display);
PLAN_TABLE_OUTPUT
-------------------------------------
Plan hash value: 2941272003
--------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost
(%CPU)| Time |
--------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 15 | 570 | 3
(0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| EMP2 | 15 | 570 | 3
(0)| 00:00:01 |
--------------------------------------------------------------------------
8 rows selected.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Explain what is a view?
What are transaction and its controls?
What are the different sql languages?
Explain the uses of control file.
what is a tablespace? : Sql dba
what are the different functions in sorting an array? : Sql dba
How is use pl and sql?
What is crud diagram?
What is a .db file?
What is cold data?
what are tables and fields? : Sql dba
State some properties of relational databases?
What are the possible values that can be stored in a boolean data field?
How do rank () and dense_rank () differ?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?