IT分销/经销Db2数据库

如何显示appl id holding the oldest transaction?

如何显示appl id holding the oldest transaction?显示全部
如何显示appl id holding the oldest transaction?收起
参与2

返回codeyunwei的回答

codeyunweicodeyunwei数据仓库工程师运维
db2 get snapshot for db |grep -i "oldest"
db2 get snapshot for application on agentid  刚才的ID


查看最早占用日志的agentid和日志的使用量
select
APPL_ID_OLDEST_XACT as "Oldest agentid",
int(total_log_used/1024/1024) as "Log Used (M)",
int(total_log_available/1024/1024) as "Log Space Free (M)",
int((float(total_log_used) / float(total_log_used+total_log_available))*100) as "Pct Used",
int(tot_log_used_top/1024/1024) as "Max Log Used (M)",
int(sec_log_used_top/1024/1024) as "Max Sec. Used (M)",
int(sec_logs_allocated) as "Secondaries"
from sysibmadm.snapdb;
IT其它 · 2014-12-29
浏览908

回答者

codeyunwei
数据仓库工程师运维
擅长领域: 备份数据库数据库安全

codeyunwei 最近回答过的问题

回答状态

  • 发布时间:2014-12-29
  • 关注会员:1 人
  • 回答浏览:908
  • X社区推广