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 2 OFFLOADING / SMART SCAN-- ELAPSED_TIME column contains the sum of all parallel slaves. So the-- script divides the value by the number of PX slaves used which gives an-- approximation.---- Note also that if parallel slaves are spread across multiple nodes on-- a RAC database the PX_SERVERS_EXECUTIONS column will not be set.-----------------------------------------------------------------------------------------set pagesize 999set lines 190col sql_text format a70 trunccol child format 99999col execs format 9,999col avg_etime format 99,999.99col "IO_SAVED_%" format 999.99col avg_px format 999col offload for a7select sql_id, child_number child, plan_hash_value plan_hash, executions execs,(elapsed_time/1000000)/decode(nvl(executions,0),0,1,executions)/decode(px_servers_executions,0,1,px_servers_executions/decode(nvl(executions,0),0,1,executions)) avg_etime,px_servers_executions/decode(nvl(executions,0),0,1,executions) avg_px,decode(IO_CELL_OFFLOAD_ELIGIBLE_BYTES,0,'No','Yes') Offload,decode(IO_CELL_OFFLOAD_ELIGIBLE_BYTES,0,0,100*(IO_CELL_OFFLOAD_ELIGIBLE_BYTES-IO_INTERCONNECT_BYTES)/decode(IO_CELL_OFFLOAD_ELIGIBLE_BYTES,0,1,IO_CELL_OFFLOAD_ELIGIBLE_BYTES)) "IO_SAVED_%",sql_textfrom v$sql swhere upper(sql_text) like upper(nvl('&sql_text',sql_text))and sql_text not like 'BEGIN :sql_text := %'and sql_text not like '%IO_CELL_OFFLOAD_ELIGIBLE_BYTES%'and sql_id like nvl('&sql_id',sql_id)order by 1, 2, 3/SYS@SANDBOX1> select avg(pk_col) from kso.skew3 where col1 < 0;AVG(PK_COL)-----------1849142.5Elapsed: 00:00:00.07SYS@SANDBOX1> alter session set cell_offload_processing=false;Session altered.Elapsed: 00:00:00.00SYS@SANDBOX1> select avg(pk_col) from kso.skew3 where col1 < 0;55

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

Saved successfully!

Ooh no, something went wrong!