讲解DB2 V9.5工作负载管理之定义服务类
2008-08-20 16:24:02 来源:WEB开发网需要对每个数据库定制时间间隔,而不是对每个 SQL 请求、命令调用或应用程序进行定制。没有其他配置参数需要考虑。
注: 所有 WLM 统计信息表函数都返回自上次复位统计信息以来累积的统计信息。将按此配置参数指定的时间间隔定期复位统计信息。
需要注意的是,默认的服务子类 SYSDEFAULTSUBCLASS,自动为每个服务父类自动创建一个。我们可以通过系统视图 SYSCAT.SERVICECLASSES,或者通过 db2pd 加 –serviceclasses 选项进行查看定义的服务类。
继续在 DB2CLP 窗口中,发出 DB2PD 命令,查看我们创建的服务类情况,我们可以看到服务父类SUPER_CLASS,服务子类 SUBCLASS_RHETTE、SUBCLASS_DB2ADMIN,以及默认创建的服务子类SYSDEFAULTSUBCLASS,具体如清单7所示:
清单 7 . 查看窗口的服务类
Database Partition 0 - - Database DB2TEST1 - - Active - - Up 0 days 06 : 26 : 15
Service Classes:
. . . . . . . . . .
Service Class Name = SUPER_CLASS
Service Class ID = 14
Service Class Type = Service Superclass
Default Subclass ID = 15
Service Class State = Enabled
Agent Priority = Default
Prefetch Priority = Default
Outbound Correlator = None
Work Action Set ID = N/A
Collect Activity Opt = None
Num Connections = 0
Last Statistics Reset Time = 2007 - 12 - 27 13:33:05.000000
Num Coordinator Connections = 0
Coordinator Connections HWM = 0
Associated Workload Occurrences ( WLO ) :
AppHandl [ nod - index ] WL ID WLO ID UOW ID WLO State
Service Class Name = SYSDEFAULTSUBCLASS
Service Class ID = 15
Service Class Type = Service Subclass
Parent Superclass ID = 14
Service Class State = Enabled
Agent Priority = Default
Prefetch Priority = Default
Outbound Correlator = None
Collect Activity Opt = None
Collect Aggr Activity Opt = None
Collect Aggr Request Opt = None
Act Lifetime Histogram Template ID = 1
Act Queue Time Histogram Template ID = 1
Act Execute Time Histogram Template ID = 1
Act Estimated Cost Histogram Template ID = 1
Act Interarrival Time Histogram Template ID = 1
Request Execute Time Histogram Template ID = 1
Access Count = 0
Last Stats Reset Time = 2007-12-27 13:33:05.000000
Activities HWM = 0
Activities Completed = 0
Activities Rejected = 0
Activities Aborted = 0
Associated Agents:
EDU ID AppHandl [ nod-index ] WL ID WLO ID UOW ID Activity ID
Associated Non-agent threads:
PID TID Thread Name
Service Class Name = SUBCLASS_RHETTE
Service Class ID = 16
Service Class Type = Service Subclass
Parent Superclass ID = 14
Service Class State = Enabled
Agent Priority = Default
Prefetch Priority = Default
Outbound Correlator = None
Collect Activity Opt = On all partitions with details and values
Collect Aggr Activity Opt = Base
Collect Aggr Request Opt = Base
Act Lifetime Histogram Template ID = 1
Act Queue Time Histogram Template ID = 1
Act Execute Time Histogram Template ID = 1
Act Estimated Cost Histogram Template ID = 1
Act Interarrival Time Histogram Template ID = 1
Request Execute Time Histogram Template ID = 1
Access Count = 0
Last Stats Reset Time = 2007-12-27 13:33:05.000000
Activities HWM = 0
Activities Completed = 0
Activities Rejected = 0
Activities Aborted = 0
Associated Agents:
EDU ID AppHandl [ nod-index ] WL ID WLO ID UOW ID Activity ID
Associated Non-agent threads:
PID TID Thread Name
Service Class Name = SUBCLASS_DB2ADMIN
Service Class ID = 17
Service Class Type = Service Subclass
Parent Superclass ID = 14
Service Class State = Enabled
Agent Priority = 6
Prefetch Priority = High
Outbound Correlator = None
Collect Activity Opt = None
Collect Aggr Activity Opt = None
Collect Aggr Request Opt = None
Act Lifetime Histogram Template ID = 1
Act Queue Time Histogram Template ID = 1
Act Execute Time Histogram Template ID = 1
Act Estimated Cost Histogram Template ID = 1
Act Interarrival Time Histogram Template ID = 1
Request Execute Time Histogram Template ID = 1
Access Count = 0
Last Stats Reset Time = 2007-12-27 13:33:05.000000
Activities HWM = 0
Activities Completed = 0
Activities Rejected = 0
Activities Aborted = 0
Associated Agents:
EDU ID AppHandl [ nod-index ] WL ID WLO ID UOW ID Activity ID
Associated Non-agent threads:
PID TID Thread Name
我们也可以通过控制中心查看系统视图 SYSDEFAULTSUBCLASS,来看一下我们创建的服务类情况,具体如图 2 所示:
图 2 . 查看已定义的服务类
- ››db2 对float类型取char后显示科学计数法
- ››DB2中出现SQL1032N错误现象时的解决办法
- ››DB2 锁升级示例
- ››db2诊断系列之---定位锁等待问题
- ››db2 命令选项解释
- ››工作中的C++:基本原理,重点推荐和结束语
- ››DB2 最佳实践: 使用 DB2 pureXML 管理 XML 数据的...
- ››DB2 9.5 SQL Procedure Developer 认证考试 735 准...
- ››DB2 9.5 SQL Procedure Developer 认证考试 735 准...
- ››DB2 9.5 SQL Procedure Developer 认证考试 735 准...
- ››DB2 基础: 表空间和缓冲池
- ››DB2 XML 编程,第 1 部分: 理解 XML 数据模型
更多精彩
赞助商链接