DB2快照監控可能對於很多剛接觸DB2數據庫的新人來說還比較陌生,下面就為你介紹DB2快照監控的項等知識,供您參考學習之用。
DB2快照監控的項:
Sorts: Number of heaps used, overflows, sorts performance, SORT】 DFT_MON_SORT】
Locks: Number of locks held, number of deadlocks, LOCK】 DFT_MON_LOCK】
Tables: Measure activity (rows read, rows written), TABLE】 DFT_MON_TABLE】
Bufferpools: Number of reads and writes, time taken, BUFFERPOOL】 DFT_MON_BUFPOOL】
Unit of work: Start times, end times, completion status, UOW】 DFT_MON_UOW】
SQL statements: Start time, stop time, statement identification, STATEMENT】DFT_MON_STMT】
Timestamps: Monitors timestamp, TIMESTAMP】 DFT_MON_TIMESTAMP】
通過下面兩個命令都可以打開監控項:
UPDATE DBM CONFIGURATION USING DFT_MON_STMT ON
修改該參數不需要重啟實例將起作用,它將作用於該實例中的每個數據庫除過這幾個監控參數外,其它對實例參數的修改需要重啟實例方生效)。
UPDATE MONITOR SWITCHES USING STATEMENT ON
該命令使該選項只在該會話中起作用,斷開後將失效。
獲取監控項快照的可用級別:
Database manager - Captures information for an active instance
Database - Captures database(s) information
Application - Captures application(s) information
Bufferpools - Captures buffer pool activity information
Table space - Captures information for table spaces within a database
Table - Captures information for tables within a database
Lock - Captures information for locks held by applications against a database
Dynamic SQL cache - Captures point-in-time statement information from the SQL statement cache for the database
查看監控開關:
GET MONITOR SWITCHES--查看當前會話的監控設置
教您如何實現DB2在線導入
db2存儲過程常用語句
DB2 CREATE SERVER語句的用法
DB2 Merge語句的用法
DB2流程控制子句一覽