oracle database monitoring with aas

56
Oracle Database Monitoring with AAS พิชญศักดิ์ เสนาไชย Pitchayasak Senachai [email protected] Pitchayasaks.blogspot.com

Upload: ougth-oracle-user-group-in-thailand

Post on 14-Jul-2015

241 views

Category:

Software


6 download

TRANSCRIPT

Page 1: Oracle Database Monitoring with AAS

Oracle Database Monitoring with AAS

พิชญศักดิ์ เสนาไชย

Pitchayasak Senachai [email protected] Pitchayasaks.blogspot.com

Page 2: Oracle Database Monitoring with AAS

การ Monitoring คืออะไร มีความสําคัญอยางไร

การตรวจสอบ ติดตาม สถานะของ database

ตรวจสอบความผิดปกติ

ตรวจสอบประสิทธิภาพ (performance)

Page 3: Oracle Database Monitoring with AAS

เม่ือ Database ทํางานชา เราจะตรวจสอบไดอยางไร

ส่ิงแรกที่จะตองตรวจสอบคืออะไร

ความผิดปกติเกิดข้ึนมาไดอยางไร และเร่ิมข้ึนตอนใหน

เคร่ืองมือที่จะนํามาใชตรวจสอบ

ผลกระทบที่เกิดข้ึนจากปญหา

Page 4: Oracle Database Monitoring with AAS

เราจะตรวจสอบความผิดปกติที่เกิดขึ้นเม่ือนานมาแลวไดอยางไร

01/11/2014 03:14 am. ที่ผานมา CPU มีการใชงานสูง

ผิดปกติ และทําให database shutdown

SQL statement ที่ทํางานทุกๆ 3 ชั่วโมง เคยรันไดไมมีปญหา แตเร่ิมมีปญหาไมสามารถรันสําเร็จเวลาเที่ยงคืน

Page 5: Oracle Database Monitoring with AAS

Statspack Report

Page 6: Oracle Database Monitoring with AAS

AWR Report

Page 7: Oracle Database Monitoring with AAS

AWR Report

Page 8: Oracle Database Monitoring with AAS

Spotlight on Oracle

Page 9: Oracle Database Monitoring with AAS

Spotlight on Oracle

Page 10: Oracle Database Monitoring with AAS

http://www.fourthelephant.com/

Insider for Oracle

Page 11: Oracle Database Monitoring with AAS

http://www.fourthelephant.com/

Insider for Oracle

Page 12: Oracle Database Monitoring with AAS

http://www.fourthelephant.com/

Insider for Oracle

Page 13: Oracle Database Monitoring with AAS

Toad for Oracle

Page 14: Oracle Database Monitoring with AAS

Toad for Oracle

Page 15: Oracle Database Monitoring with AAS

Toad for Oracle

Page 16: Oracle Database Monitoring with AAS

Toad for Oracle

Page 17: Oracle Database Monitoring with AAS

www.lab128.com

Page 18: Oracle Database Monitoring with AAS

dbTrends for Oracle STATSPACK

Page 19: Oracle Database Monitoring with AAS

dbTrends for Oracle STATSPACK

Page 20: Oracle Database Monitoring with AAS

WISE (Workload Interface Statistical Engine)

Page 21: Oracle Database Monitoring with AAS

WISE (Workload Interface Statistical Engine)

Page 22: Oracle Database Monitoring with AAS

เราจะตรวจสอบความผิดปกติที่เกิดขึ้นเม่ือนานมาแลวไดอยางไร

01/11/2014 03:14 am. ที่ผานมา CPU มีการใชงานสูง

ผิดปกติ และทําให database shutdown

SQL statement ที่ทํางานทุกๆ 3 ชั่วโมง เคยรันไดไมมีปญหา แตเร่ิมมีปญหาไมสามารถรันสําเร็จเวลาเที่ยงคืน

Page 23: Oracle Database Monitoring with AAS
Page 24: Oracle Database Monitoring with AAS

Average Active Session (AAS)

Page 25: Oracle Database Monitoring with AAS

AWR Report

Page 26: Oracle Database Monitoring with AAS

AAS in OEM

Page 27: Oracle Database Monitoring with AAS

AAS Components

Page 28: Oracle Database Monitoring with AAS

Active Session

Page 29: Oracle Database Monitoring with AAS

Active Session History (ASH)

Page 30: Oracle Database Monitoring with AAS
Page 31: Oracle Database Monitoring with AAS
Page 32: Oracle Database Monitoring with AAS

What is AWR Warehouse

Page 33: Oracle Database Monitoring with AAS
Page 34: Oracle Database Monitoring with AAS
Page 35: Oracle Database Monitoring with AAS
Page 36: Oracle Database Monitoring with AAS
Page 37: Oracle Database Monitoring with AAS
Page 38: Oracle Database Monitoring with AAS
Page 39: Oracle Database Monitoring with AAS

License

Oracle Database Diagnostic Pack is a $5,000 extra-cost option, and you must also have a license to access the Oracle10g AWR and ADDM components. This includes AWR (Automatic Workload Repository), the dbms_workload_repository package, the awrrpt.sql and awrrpti.sql reports, any of the dba_hist and v$active_session_history views, ADDM - Automatic Database Diagnostic Monitor, and all dba_advisor views.

Page 40: Oracle Database Monitoring with AAS

www.lab128.com

Page 41: Oracle Database Monitoring with AAS

www.lab128.com

Page 42: Oracle Database Monitoring with AAS

www.lab128.com

Page 43: Oracle Database Monitoring with AAS

Lighty for Oracle

Page 44: Oracle Database Monitoring with AAS

Lighty for Oracle

Page 45: Oracle Database Monitoring with AAS

Lighty for Oracle

Page 46: Oracle Database Monitoring with AAS

Lighty for Oracle

Page 47: Oracle Database Monitoring with AAS

DB Optimizer

Page 48: Oracle Database Monitoring with AAS

DB Optimizer

Page 49: Oracle Database Monitoring with AAS

Oracle ASH Simulation

http://sourceforge.net/projects/orasash/ http://pioro.github.io/orasash/index.html http://download.orachrome.com/L-ASH.zip https://marcusmonnig.wordpress.com/bash/

All data dictionary views beginning with the prefix DBA_HIST_ are part of this pack, along with their underlying tables.The only exception are the views: DBA_HIST_SNAPSHOT, DBA_HIST_DATABASE_INSTANCE, DBA_HIST_SNAP_ERROR, DBA_HIST_SEG_STAT, DBA_HIST_SEG_STAT_OBJ, and DBA_HIST_UNDOSTAT. They can be used without the Diagnostic Pack license.

Page 50: Oracle Database Monitoring with AAS

SASH visualization using Excel http://oracleprof.blogspot.com/2011/04/sash-visualization-using-excel.html

Page 51: Oracle Database Monitoring with AAS

SASH visualization using Excel http://oracleprof.blogspot.com/2011/04/sash-visualization-using-excel.html

Page 52: Oracle Database Monitoring with AAS

SASH visualization using Excel http://oracleprof.blogspot.com/2011/04/sash-visualization-using-excel.html

Page 53: Oracle Database Monitoring with AAS

ASH data viewer in Mumbai version 2.2.1.824 https://marcusmonnig.wordpress.com/mumbai/

Page 54: Oracle Database Monitoring with AAS

ASH data viewer in Mumbai version 2.2.1.824 https://marcusmonnig.wordpress.com/mumbai/

Page 55: Oracle Database Monitoring with AAS

Q & A

Page 56: Oracle Database Monitoring with AAS

Thank you