Database Tuning (MOSC)

MOSC Banner

DBMS_XPLAN.DISPLAY - predicate information

edited Feb 13, 2011 6:31PM in Database Tuning (MOSC) 2 commentsAnswered
As mentioned in Oracle® Database PL/SQL Packages and Types Reference oracle predicate information is only displayed when applicable.


Do you konow when it is not applicable .



First System Which shows predicate information

SQL>  create table ttt (a number);

Table created.

SQL> explain plan for select * from ttt where a=333;

Explained.

SQL> Select * from table(dbms_xplan.display());

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 774701505

--------------------------------------------------------------------------
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------
|   0 | SELECT STATEMENT  |      |     1 |    13 |     2   (0)| 00:00:01 |
|*  1 |  TABLE ACCESS FULL| TTT  |     1 |    13 |     2   (0)| 00:00:01 |
--------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------

   1 - filter("A"=333)




Second System Which doesn't show predicate information

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center