【Oracle】Oracle常用EVENT之一
Event 10013 - Monitor Transaction Recovery
在Startup時跟蹤事務恢復
ALTER SESSION SET EVENTS '10013 trace name context forever, level 1';
Event 10015 - Dump Undo Segment Headers-
在事務恢復後做Dump回退段頭資訊
ALTER SESSION SET EVENTS '10015 trace name context forever, level 1';
Event 10032 - Dump Sort Statistics
Dump排序的統計資訊
ALTER SESSION SET EVENTS '10032 trace name context forever, level 10';
Event 10033 - Dump Sort Intermediate Run Statistics
排序過程中,記憶體排序區和臨時表空間的互動情況
ALTER SESSION SET EVENTS '10033 trace name context forever, level 10';
Event 10045 - Trace Free List Management Operations
FREELIST的管理操作
ALTER SESSION SET EVENTS '10045 trace name context forever, level 1';
Event 10046 - Enable SQL Statement Trace
跟蹤SQL,有執行計劃,邦定變數和等待的統計資訊,level 12最詳細。
ALTER SESSION SET EVENTS '10046 trace name context forever, level 12';
LEVEL定義如下:
1:SQL 語句,執行計劃和執行狀態
4:1的內容加上繫結變數資訊
8:1的資訊加上等待事件資訊
12:1+4+8
Event 10053 - Dump Optimizer Decisions
在分析SQL語句時,Dump出最佳化器所做的選擇,級別level 1最詳細
ALTER SESSION SET EVENTS '10053 trace name context forever, level 1';
LEVEL定義如下:
1:狀態和估算資訊
2:只顯示估算資訊
Event 10060 - Dump Predicates
DUMP SQL語句中的斷語資訊。需要在需要DUMP的使用者下建立以下表
CREATE TABLE kkoipt_table
(c1 INTEGER,
c2 VARCHAR2(80));
斷語資訊會寫入該表
ALTER SESSION SET EVENTS '10060 trace name context forever, level 1';
Event 10065 - Restrict Library Cache Dump Output for State Object Dumps
限制物件狀態DUMP的時候LIBRARY CACHE資訊的詳細程度
1 Address of library object only
2 As level 1 plus library object lock details
3 As level 2 plus library object handle and library object
預設是LEVEL 3
ALTER SESSION SET EVENTS '10065 trace name context forever, level level';
Event 10079 - Dump SQL*Net Statistics-
Dump SQL*NeT的統計資訊
ALTER SESSION SET EVENTS '10079 trace name context forever, level 2';
Event 10081 - Trace High Water Mark Changes
HWM的改變
ALTER SESSION SET EVENTS '10081 trace name context forever, level 1';
Event 10104 - Dump Hash Join Statistics
HASH JOIN的統計資訊
ALTER SESSION SET EVENTS '10104 trace name context forever, level 10';
Event 10128 - Dump Partition Pruning Information
分割槽表調整資訊
ALTER SESSION SET EVENTS '10128 trace name context forever, level level';
Level取值:
1Dump pruning descriptor for each partitioned object
0x0002 Dump partition iterators
0x0004 Dump optimizer decisions about partition-wise joins
0x0008 Dump ROWID range scan pruning information
在9.0.1或者後面的版本,在level 2後還需要建立如下的表:
CREATE TABLE kkpap_pruning
(
partition_count NUMBER,
iterator VARCHAR2(32),
partition_level VARCHAR2(32),
order_pt VARCHAR2(12),
call_time VARCHAR2(12),
part# NUMBER,
subp# NUMBER,
abs# NUMBER
);
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-721717/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Oracle】Oracle常用EVENT之三Oracle
- 【Oracle】Oracle常用EVENT之二Oracle
- Oracle常用Event參考Oracle
- oracle event 2 (zt)Oracle
- ORACLE常用傻瓜問題1000問(之一) (轉)Oracle
- Oracle DataPump之一Oracle
- ORACLE EVENT && ORADEBUGOracle
- ORACLE event和說明Oracle
- ORACLE 配置event引數Oracle
- oracle event 10513作用Oracle
- 設定 oracle event traceOracle
- ORACLE 習題之一Oracle
- 使用 oracle 10046 eventOracle
- oracle wait event 等待事件OracleAI事件
- Oracle System Event TriggersOracle
- Oracle V$event_name 整理Oracle
- Oracle EVENT用法參考列表Oracle
- (轉)Oracle EVENT && ORADEBUGOracle
- Oracle 跟蹤事件 set eventOracle事件
- oracle Database Event trace 設定OracleDatabase
- Oracle Wait Event - TuningOracleAI
- ORACLE記憶體管理 之一 ORACLE PGAOracle記憶體
- 【Oracle】 RAC 環境刪除oracle 之一Oracle
- ORACLE多個event設定方式Oracle
- ZT Oracle EVENT用法參考列表Oracle
- oracle & NFS & backup & event & 10298OracleNFS
- Oracle event 10231Oracle
- ORACLE進階之一:HINTOracle
- oracle,db2,mysql類比之一常用類似知識點OracleDB2MySql
- oracle常用文件Oracle
- Oracle 常用SQLOracleSQL
- 常用Oracle命令Oracle
- ORACLE _small_table_threshold與eventOracle
- Common Oracle Wait Event Descriptions(zt)OracleAI
- oracle event 10046 level_事件Oracle事件
- zt_oracle診斷事件event列表Oracle事件
- oracle mutex概念掃盲之一OracleMutex
- ORACLE HANDBOOK系列之一:Oracle分析函式(Analytic Function)Oracle函式Function