10.07.2015 Views

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 4 STORAGE INDEXES1 row selected.Elapsed: 00:00:57.51SYS@EXDB1> @fsx2Enter value for sql_text: select count(*) from kso.skew3 where trunc(col3)%Enter value for sql_id:SQL_IDAVG_ETIME PX OFFLOAD IO_SAVED% SQL_TEXT------------- ------------- --- ------- --------- ----------------------------------------3c1w96cayhut9 56.94 0 Yes 99.99 select count(*) from kso.skew3 wheretrunc(col3) = '20-OCT-2005'3c1w96cayhut9 57.50 0 Yes 99.99 select count(*) from kso.skew3 wheretrunc(col3) = '20-OCT-2005'2 rows selected.Elapsed: 00:00:00.01SYS@EXDB1> select * from table(dbms_xplan.display_cursor('&sql_id','&child_no','typical'));Enter value for sql_id: 3c1w96cayhut9Enter value for child_no:PLAN_TABLE_OUTPUT--------------------------------------------------------------------------------------------SQL_ID 3c1w96cayhut9, child number 1-------------------------------------select count(*) from kso.skew3 where trunc(col3) = '20-OCT-2005'Plan hash value: 2684249835------------------------------------------------------------------------------------| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |------------------------------------------------------------------------------------| 0 | SELECT STATEMENT | | | | 541K(100)| || 1 | SORT AGGREGATE | | 1 | 8 | | ||* 2 | TABLE ACCESS STORAGE FULL| SKEW3 | 4 | 32 | 541K (3)| 01:48:24 |------------------------------------------------------------------------------------Predicate Information (identified by operation id):---------------------------------------------------2 - storage(TRUNC(INTERNAL_FUNCTION("COL3"))=TO_DATE(' 2005-10-2000:00:00', 'syyyy-mm-dd hh24:mi:ss'))filter(TRUNC(INTERNAL_FUNCTION("COL3"))=TO_DATE(' 2005-10-2000:00:00', 'syyyy-mm-dd hh24:mi:ss'))Note-----cardinality feedback used for this statement123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!