EVMON_FORMAT_UE_TO_XML 为工作单元事件监视器写至 XML 的信息

EVMON_FORMAT_UE_TO_XML 表函数为工作单元事件监视器写入的信息。sqllib/misc/DB2EvmonUOW.xsd 文件中也记录了此信息。

db2_uow_event

用于描述工作单元事件的主模式。

元素内容: ( completion_status , start_time , stop_time , connection_time , application_name , application_handle , application_id , uow_id , workload_occurrence_id , coord_member , member_activation_time , workload_name , workload_id , service_superclass_name {zero or one times (?)} , service_subclass_name {zero or one times (?)} , service_class_id {zero or one times (?)} , session_authid {zero or one times (?)} , system_authid , client_pid , client_product_id , client_platform , client_protocol {zero or one times (?)} , client_userid {zero or one times (?)} , client_wrkstnname {zero or one times (?)} , client_applname {zero or one times (?)} , client_acctng {zero or one times (?)} , local_transaction_id , global_transaction_id , system_metrics , client_hostname , client_port_number , uow_log_space_used , package_list , executable_list , intra_parallel_state , member_subset_id , active_hash_grpbys_top , active_hash_joins_top , active_olap_funcs_top , active_peas_top , active_peds_top , active_sort_consumers_top , active_sorts_top , active_col_vector_consumers_top , sort_consumer_heap_top , sort_consumer_shrheap_top , sort_heap_top , sort_shrheap_top , ANY content ( skip ) {zero or more (*)} )

属性:

QName Type 修订时间 缺省值 使用 注释
id xs:long 必需  
type 必需  
timestamp xs:dateTime 必需  
member   必需  
release xs:long 必需  
mon_interval_id xs:long 必需  
任何名称空间中的任何属性          

package_id

有关更多详细信息,请参阅监视元素 package_id -“程序包标识”监视元素

包含者: package_entry

元素内容:

Type 构面
xs:long  

package_elapsed_time

有关更多详细信息,请参阅监视元素 package_elapsed_time -“程序包耗用时间”监视元素

包含者: package_entry

元素内容:

Type 构面
xs:long  

invocation_id

有关更多详细信息,请参阅监视元素 invocation_id -“调用标识”监视元素

包含者: package_entry

元素内容:

Type 构面
xs:int  

routine_id

有关更多详细信息,请参阅监视元素 routine_id -“例程标识”监视元素

包含者: package_entry

元素内容:

Type 构面
xs:int  

nesting_level

有关更多详细信息,请参阅监视元素 nesting_level -“嵌套级别”监视元素

包含者: package_entry

元素内容:

Type 构面
xs:int  

package_entry

包含者: package_list_entries

元素内容: ( package_id , package_elapsed_time , invocation_id , routine_id , nesting_level , ANY content ( skip ) {zero or more (*)} )

属性:

QName Type 修订时间 缺省值 使用 注释
任何名称空间中的任何属性          

package_list_size

有关更多详细信息,请参阅监视元素 package_list_size -“程序包列表大小”监视元素

包含者: package_list

元素内容:

Type 构面
xs:int  

package_list_exceeded

有关更多详细信息,请参阅监视元素 package_list_exceeded -“超过了程序包列表的容量”监视元素

包含者: package_list

package_list_entries

包含者: package_list

元素内容: ( package_entry {zero or more (*)} )

属性:

QName Type 修订时间 缺省值 使用 注释
任何名称空间中的任何属性          

executable_id

有关更多详细信息,请参阅监视元素 executable_id -“可执行标识”监视元素

包含者: executable_entry

num_executions

有关更多详细信息,请参阅监视元素 num_executions -“语句执行次数”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

rows_read

有关更多详细信息,请参阅监视元素 rows_read -“读取行数”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

total_cpu_time

有关更多详细信息,请参阅监视元素 total_cpu_time -“CPU 时间总计”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

total_act_time

有关更多详细信息,请参阅监视元素 total_act_time -“活动总时间”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

total_act_wait_time

有关更多详细信息,请参阅监视元素 total_act_wait_time -“活动等待总时间”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

lock_wait_time

有关更多详细信息,请参阅监视元素 lock_wait_time -“等待锁定时间”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

lock_waits

有关更多详细信息,请参阅监视元素 lock_waits -“等待锁定次数”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

total_sorts

有关更多详细信息,请参阅监视元素 total_sorts -“排序总数”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

post_threshold_sorts

有关更多详细信息,请参阅监视元素 post_threshold_sorts -“后阈值排序次数”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

post_shrthreshold_sorts

有关更多详细信息,请参阅监视元素 post_shrthreshold_sorts -“后共享阈值排序数”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

sort_overflows

有关更多详细信息,请参阅监视元素 sort_overflows -“排序溢出次数”监视元素

包含者: executable_entry

元素内容:

Type 构面
xs:long  

executable_entry

包含者: executable_list_entries

元素内容: ( executable_id , num_executions , rows_read , total_cpu_time , total_act_time , total_act_wait_time , lock_wait_time , lock_waits , total_sorts , post_threshold_sorts , post_shrthreshold_sorts , sort_overflows , ANY content ( skip ) {zero or more (*)} )

属性:

QName Type 修订时间 缺省值 使用 注释
任何名称空间中的任何属性          

executable_list_size

有关更多详细信息,请参阅监视元素 executable_list_size -“可执行列表大小”监视元素

包含者: executable_list

元素内容:

Type 构面
xs:int  

executable_list_truncated

有关更多详细信息,请参阅监视元素 executable_list_truncated -“截断可执行列表”监视元素

包含者: executable_list

executable_list_entries

包含者: executable_list

元素内容: ( executable_entry {zero or more (*)} )

属性:

QName Type 修订时间 缺省值 使用 注释
任何名称空间中的任何属性          

completion_status

工作单元的完成状态。可能的值包括:UNKNOWN、COMMIT、ROLLBACK、GLOBAL_COMMIT、GLOBAL ROLLBACK、XA_END 或 XA_PREPARE

包含者: db2_uow_event

start_time

工作单元的启动时间。有关更多详细信息,请参阅监视元素 uow_start_time -“工作单元开始时间戳记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:dateTime  

stop_time

工作单元的停止时间。有关更多详细信息,请参阅监视元素 uow_stop_time -“工作单元停止时间戳记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:dateTime  

connection_time

应用程序连接到数据库成员的时间。有关更多详细信息,请参阅监视元素 conn_time -“数据库连接时间”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:dateTime  

application_name

客户机上运行的应用程序在数据库中的名称。有关更多详细信息,请参阅监视元素 appl_name -“应用程序名称”监视元素

包含者: db2_uow_event

application_handle

应用程序在系统范围内的唯一标识。有关更多详细信息,请参阅监视元素 agent_id -“应用程序句柄(代理程序标识)”监视元素

包含者: db2_uow_event

application_id

当应用程序连接到数据库管理器上的数据库时,将生成此标识。有关更多详细信息,请参阅监视元素 appl_id -“应用程序标识”监视元素

包含者: db2_uow_event

uow_id

此活动记录所应用于的工作单元标识。有关更多详细信息,请参阅监视元素 uow_id -“工作单元标识”监视元素

包含者: db2_uow_event

workload_occurrence_id

此活动记录所应用于的工作负载实例标识。有关更多详细信息,请参阅监视元素 workload_occurrence_id -“工作负载实例标识”监视元素

包含者: db2_uow_event

coord_member

包含者: db2_uow_event

member_activation_time

此数据库成员的激活时间。有关更多详细信息,请参阅监视元素 db_conn_time -“数据库激活时间戳记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:dateTime  

workload_name

在其中完成此工作单元的工作负载的名称。有关更多详细信息,请参阅监视元素 workload_name -“工作负载名称”监视元素

包含者: db2_uow_event

workload_id

在其中完成此工作单元的工作负载的工作负载标识。有关更多详细信息,请参阅监视元素 workload_id -“工作负载标识”监视元素

包含者: db2_uow_event

service_superclass_name

在其中完成此工作单元的服务超类的名称。有关更多详细信息,请参阅监视元素 service_superclass_name -“服务超类名”监视元素

包含者: db2_uow_event

service_subclass_name

在其中完成此工作单元的服务子类的名称。有关更多详细信息,请参阅监视元素 service_subclass_name -“服务子类名”监视元素

包含者: db2_uow_event

service_class_id

在其中完成此工作单元的服务类的服务类标识。有关更多详细信息,请参阅监视元素 service_class_id -“服务类标识”监视元素

包含者: db2_uow_event

session_authid

调用所监视应用程序的用户的会话授权标识。有关更多详细信息,请参阅监视元素 session_auth_id -“会话授权标识”监视元素

包含者: db2_uow_event

system_authid

调用所监视应用程序的用户的系统授权标识。有关更多详细信息,请参阅监视元素 system_auth_id -“系统授权标识”监视元素

包含者: db2_uow_event

client_pid

客户机报告的进程标识。有关更多详细信息,请参阅监视元素 client_pid -“客户机进程标识”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

client_product_id

客户机的产品标识。有关更多详细信息,请参阅监视元素 client_prdid -“客户机产品和版本标识”监视元素

包含者: db2_uow_event

client_platform

客户机的平台。有关更多详细信息,请参阅监视元素 client_platform -“客户机操作平台”监视元素

包含者: db2_uow_event

属性:

QName Type 修订时间 缺省值 使用 注释
id xs:short 可选  

client_protocol

客户机的产品标识。有关更多详细信息,请参阅监视元素 client_protocol -“客户机通信协议”监视元素

包含者: db2_uow_event

client_userid

由事务管理器生成并提供给服务器的客户机用户标识。有关更多详细信息,请参阅监视元素 client_userid -“客户机用户标识”监视元素

包含者: db2_uow_event

client_wrkstnname

如果在此连接中发出了 sqleseti API,那么此元素标识客户机系统或工作站。有关更多详细信息,请参阅监视元素 client_wrkstnname -“客户机工作站名称”监视元素

包含者: db2_uow_event

client_applname

如果在此连接中发出了 sqleseti API,那么此元素标识执行事务的服务器事务程序。有关更多详细信息,请参阅监视元素 client_applname -“客户机应用程序名称”监视元素

包含者: db2_uow_event

client_acctng

如果在此连接中发出了 sqleseti API,那么此元素是为了进行日志记录和诊断而传递到目标数据库的数据。有关更多详细信息,请参阅监视元素 client_acctng -“客户机记帐字符串”监视元素

包含者: db2_uow_event

local_transaction_id

工作单元的局部事务标识。

包含者: db2_uow_event

global_transaction_id

工作单元的全局事务标识。

包含者: db2_uow_event

system_metrics

工作单元的指标。

包含者: db2_uow_event

client_hostname

客户机的主机名。有关更多详细信息,请参阅监视元素 client_hostname -“客户机主机名”监视元素

包含者: db2_uow_event

client_port_number

客户机的端口号。有关更多详细信息,请参阅监视元素 client_port_number -“客户机端口号”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:int  

uow_log_space_used

在工作单元期间使用的日志空间量。有关更多详细信息,请参阅监视元素 uow_log_space_used -“使用的工作单元日志空间”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

package_list

工作单元的程序包列表。

包含者: db2_uow_event

元素内容: ( package_list_size , package_list_exceeded , package_list_entries , ANY content ( skip ) {zero or more (*)} )

属性:

QName Type 修订时间 缺省值 使用 注释
任何名称空间中的任何属性          

executable_list

工作单元的可执行列表。

包含者: db2_uow_event

元素内容: ( executable_list_size , executable_list_truncated , executable_list_entries , ANY content ( skip ) {zero or more (*)} )

属性:

QName Type 修订时间 缺省值 使用 注释
任何名称空间中的任何属性          

intra_parallel_state

工作单元的当前分区内并行性状态。可能的值为 YES 和 NO。

包含者: db2_uow_event

member_subset_id

运行了此工作单元的应用程序已指定给的成员子集的标识。有关更多详细信息,请参阅监视元素 member_subset_id -“成员子集标识”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:int  

active_hash_grpbys_top

有关更多详细信息,请参阅监视元素 active_hash_grpbys_top -“活动散列 GROUP BY 操作次数高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

active_hash_joins_top

有关更多详细信息,请参阅监视元素 active_hash_joins_top -“活动散列连接操作次数高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

active_olap_funcs_top

有关更多详细信息,请参阅监视元素 active_olap_funcs_top -“活动 OLAP 函数操作次数高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

active_peas_top

有关更多详细信息,请参阅监视元素 active_peas_top -“活动部分提前聚集操作次数高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

active_peds_top

有关更多详细信息,请参阅监视元素 active_peds_top -“活动部分提前相异操作次数高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

active_sort_consumers_top

有关更多详细信息,请参阅监视元素 active_sort_consumers_top -“活动排序内存使用者数高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

active_sorts_top

有关更多详细信息,请参阅监视元素 active_sorts_top -“活动排序数高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

active_col_vector_consumers_top

有关更多详细信息,请参阅监视元素 active_col_vector_consumers_top -“活动柱状矢量内存使用者数高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

sort_consumer_heap_top

有关更多详细信息,请参阅监视元素 sort_consumer_heap_top -“单个专用排序堆使用者高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

sort_consumer_shrheap_top

有关更多详细信息,请参阅监视元素 sort_consumer_shrheap_top -“单个共享排序堆使用者高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

sort_heap_top

有关更多详细信息,请参阅监视元素 sort_heap_top -“排序专用堆高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long  

sort_shrheap_top

有关更多详细信息,请参阅监视元素 sort_shrheap_top -“排序共享堆高水位标记”监视元素

包含者: db2_uow_event

元素内容:

Type 构面
xs:long