I want to take a look at the execution-Plans in Oracle. I tried this:
select /*+ gather_plan_statistics */ /*test4*/ * from tag
where key='name';
SELECT t.*
FROM v$sql s, table(DBMS_XPLAN.DISPLAY_CURSOR(s.sql_id, s.child_number, 'TYPICAL PROJECTION')) t WHERE sql_text LIKE '%test4%';
The result was:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
--------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | | | 22 (100)| |
|* 1 | TABLE ACCESS FULL| TAG | 14 | 714 | 22 (0)| 00:00:01 |
My problem is that the Rows are not correct, there are 3019 Rows with key='name'. This is an estimated Value.
My question is, how can I get the real value ?
Thanks, Andre