In 10g/11g,working with ASH and AWR
The ASH contains recent information on active sessions sampled every second. The AWR takes snapshots of the database every hour, so the information in the AWR could be almost an hour old and will not help in diagnosing issues that are current on the database.
[@more@]Typically, to resolve issues currently on the database, detailed information pertaining to the last 5 or 10 minutes is critical. Because recording session activity is expensive, ASH samples V$SESSION every second and records the events for which the sessions are waiting.ASH is designed as a rolling buffer in memory; old information is overwritten after saving it to the AWR. You can query ASH information using the V$ACTIVE_SESSION_HISTORY view.The view contains one row for each active session per sample and returns the latest session’s sample rows first.
The AWR is a collection of persistent system performance statistics owned by the SYS schema.Over time, you should purge the statistics, and sometimes you may want to get a snapshot of the system for performance diagnosing outside the regular interval. Oracle 10g provides several programs in a package named DBMS_WORKLOAD_REPOSITORY. Using these programs, you can manage the snapshots and perform baselines.
下面透過呼叫dbms_workload_repository包中的create_snapshot來手工產生兩個快照:
EXEC dbms_workload_repository.create_snapshot();
。。。 。。。 。。。
EXEC dbms_workload_repository.create_snapshot();
緊接著透過awrrpt.sql來產生報告(非常類似statspack中的spreport.sql)
You can view AWR reports using the awrrpt.sql and awrrpti.sql scripts located in the
$ORACLE_HOME/rdbms/admin directory. The awrrpt.sql script displays statistics for a range
of snapshot IDs. The report can be saved as text file or HTML file. The awrrpti.sql script is
similar to awrrpt.sql; the only difference is you can specify the database ID and instance ID
as parameters. The report contains the following categories of information:
Report summary
Wait events statistics
SQL statistics
Instance activity statistics
I/O statistics
Buffer pool statistics
Advisory statistics
Wait statistics
Undo statistics
Latch statistics
Segment statistics
Dictionary cache statistics
Library cache statistics
SGA statistics
Resource limit statistics
init.ora parameters
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/38542/viewspace-927575/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- working with ASH and AWR
- oracle awr ashOracle
- ASH, AWR , 等待事件事件
- 學用ORACLE AWR和ASH特性(1)-ASH和AWR的故事Oracle
- Oracle10g ASH and AWROracle
- 10G新特性筆記之AWR,ASH,METRIC,ALERT&ADVISOR筆記
- 學用ORACLE AWR和ASH特性(8)-生成ASH報表Oracle
- statspack、awr、addm,ash影片分享
- AWR、ASH、ADDM和顧問程式
- ASH、AWR、ADDM區別聯絡
- statspack、awr、addm,ash視訊分享
- 學用ORACLE AWR和ASH特性(7)-AWR的幾個幫Oracle
- Oracle AWR與ASH效能報告深入解析Oracle
- oracle效能調憂工具AWR,ASH,ADDMOracle
- ASH buffers 資料取樣到AWR的問題
- Oracle10g AWR及ASH詳解(final)Oracle
- ASH可以生成指定的session或sql_id的報告,ASH和AWR的區別SessionSQL
- ORACLE 10G AWR 速查!Oracle 10g
- 10G新特性 - AWR
- Oracle 10g,AWR,AWR,ADDM最佳實踐Oracle 10g
- Oracle 11g 手工跑ASH報告Oracle
- oracle 10G特性之awrOracle 10g
- Oracle 11g AWR 系列六:使用 AWR 檢視Oracle
- [轉]Oracle資料庫ASH和AWR的簡單介紹Oracle資料庫
- ORACLE AWR效能報告和ASH效能報告的解讀Oracle
- Oracle效能調整的三把利劍--ASH,AWR,ADDMOracle
- 轉載詳細的Oracle ASH/AWR介紹及報告分析Oracle
- Oracle 10g AWR 報告分析Oracle 10g
- 【轉】ORACLE 10G AWR 相關Oracle 10g
- Oracle 10g AWR安裝使用Oracle 10g
- 10g awr與statspack區別
- oracle 10g AWR介紹(ZT)Oracle 10g
- Oracle 11g ASH報告的生成方法Oracle
- oracle 10g awr報告的收集Oracle 10g
- Oracle 10g AWR Report 分析(轉)Oracle 10g
- ORACLE 11G生成AWR報告Oracle
- 學用ORACLE AWR和ASH特性(4)-生成指定SQL的統計報表OracleSQL
- oracle 10g 禁用和解除安裝AWROracle 10g