10.07.2015 Views

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 6 MAKING PCBSEnter value for owner: KSOEnter value for table_name: SKEWEnter value for type:OWNER SEGMENT_NAME TYPE TOTALSIZE_MEGS-------------------- -------------------- ------------------ --------------KSO SKEW TABLE 2,560.0--------------sum 2,560.01 row selected.SYS@EXDB1> @dba_tablesEnter value for owner: KSOEnter value for table_name: SKEWOWNER TABLE_NAME STATUS LAST_ANAL NUM_ROWS BLOCKS DEGREE------- ------------- -------- --------- ---------- ---------- ------KSO SKEW VALID 18-SEP-10 32000004 162294 11 row selected.So the buffer cache on this instance is about 3.8G, the table is about 2.5 G. The query we used issimple and will not benefit from storage indexes, as virtually all the records satisfy the single WHEREclause.SYS@EXDB1> !cat avgskew.sqlselect avg(pk_col) from kso.skew a where col1 > 0/SYS@EXDB1> select count(*) from kso.skew;COUNT(*)----------320000041 row selected.SYS@EXDB1> select count(*) from kso.skew where col1 > 0;COUNT(*)----------320000001 row selected.SYS@EXDB1> select 32000000/32000004 from dual;32000000/32000004-----------------.9999998751 row selected.167

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

Saved successfully!

Ooh no, something went wrong!