2014年6月2日,作者: 杰克·范瓦斯(Jack Vamvas)
题: 如何获取列定义 of the DB2 监视(MON)表功能?
回答: 您可以通过添加前缀来描述Monitor功能表的输出 描述输出 之前 SELECT语句。它将返回列定义。例如,
--return column details of MON_GET_BUFFERPOOL db2 "describe output SELECT * FROM TABLE(MON_GET_BUFFERPOOL('',-2))" ---return column details of waits and processing times for a connection db2 “describe output select r.metric_name, r.parent_metric_name, r.total_time_value as time, r.count, c.member from table(mon_get_connection_details(125,-2)) as c, table(mon_format_xml_times_by_row(c.details)) as r order by total_time_value desc
Posted by: |