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.

APPENDIX C DIAGNOSTIC SCRIPTSScript Namedisplay_raw.sqldplan.sqldump_block.sqlesfc_hit_ratio.sqlesfc_keep_tables.sqlflush_pool.sqlflush_sql.sqlfs.sqlfsx.sqlfsxo.sqlgather_table_stats.sqlDescriptionThis is a simple script to translate a raw value into a specified data-typeformat such as NUMBER or VARCHAR2. It depends on the display_raw()function created by the create_display_raw.sql script.This script shows the actual execution plan for a SQL statement in theshared pool. This is a very simple script that prompts for a SQL_ID andCHILD_NO and then calls dbms_xplan.display_cursor.This script dumps a data block to a trace file using ALTER SYSTEM DUMPDATAFILE. It prompts for fileno and blockno.Useless script for calculating an incorrect Edxadata Smart Flash Cachehit ratio.This script displays objects that have the CELL_FLASH_CACHE attribute setto KEEP.This script uses ALTER SYSTEM FLUSH SHARED_POOL to flush all SQLstatements from the shared pool.This script uses DBMS_SHARED_POOL.PURGE to flush a single SQLstatetement from the shared pool. It only works with 10.2.0.4 and later.This script allows you to search through V$SQL using a bit of SQL text or aSQL_ID. (FS is short for Find SQL) The script reports some statisticalinformation, such as average Elapsed Time and average LIOs.FSX stands for Find SQL eXadata. This script searches the shared pool(V$SQL) based on the SQL statement text or a specific SQL_ID and reportswhether statements were offloaded or not and, if offloaded, whatpercentage of I/O was saved. Note that there are several alternateversions of this script used in the book (fsx2.sql, fsx3.sql, andfsx4.sql). These versions reduce the width of the output to somethingmore easily printed in the limits imposed by the printed book format.This script is similar to the fsx.sql script but can be used to identifylong-running statements and report on whether they have beenoffloaded or not. It can be used in conjunction with theoffload_percent.sql script to drill into the individual statementscontributing to it’s calcualted offload percentage.This is a simple script to gather table statistics using theDBMS_STATS.GATHER_TABLE_STATS procedure.548

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

Saved successfully!

Ooh no, something went wrong!