问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

db2 sbustr用法

发布网友 发布时间:2022-04-13 21:37

我来回答

2个回答

懂视网 时间:2022-04-14 01:58

DB2 db2mtrk用法总结,当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memo

当我们对db2内存使用清理进行监控检查的时候,经常需要知道db2当前的内存使用情况。通过参数instance_memory并不能准确的看到这些信息,因为instance_memory包括了mon_heap, audit_buf_sz and FCM, database shared memory segment (bufferpool, locklist, dbheap, pckcache, util_heap, catalogcache)这些内存池集合,而db2mtrk就可以指定数据库和实例级别查看实时的内存使用情况

所以在DB2中,,db2mtrk工具就是一个查看当前内存使用情况的非常好的的工具。

db2mtrk的命令语法:(unix,linux,window平台之间可能有稍许差异)
db2inst1@marven ~]$ db2mtrk -h
Usage: db2mtrk -i | -d | -a | -p [-m | -w] [-v] [-r interval [count]] [-h]


-i Display instance level memory usage
-d Display database level memory usage
-a Display application level memory usage
-p Display agent private memory usage
-m Display maximum usage information
-w Display watermark usage information
-v Display verbose memory usage information
-r Run in repeat mode
interval Amount of seconds to wait between reports
count Number of reports to generate before quitting
-h Display this help screen

Notes:

1. One of -i -d -a -p must be specified.
2. The -w and -m flags are optional. An invocation of the application
is invalid if both flags are specified.
3. The -m flag reports the maximum allowable size for a given heap
while the -w flag reports the largest amount of memory allocated
from a given heap at some point in its history.

Usage scenarios:

db2mtrk -i -d

Report current memory usage for instance and all databases

db2mtrk -i -p -m

Report maximum allowable size for instance and agent private memory

db2mtrk -p -r 1 5

Report agent private memory five times at one second intervals

Heap Legend:

When running in normal mode (i.e. -v flag not specified) heaps are named
using the following codes:

agsh - Application Group Shared Heap lockh - Lock Manager Heap
appctlh - Application Control Heap monh - Database Monitor Heap
apph - Application Heap other - Other Memory
appshrh - Applications Shared Heap pckcacheh - Package Cache
bph - Buffer Pool Heap queryh - Query Heap
catcacheh - Catalog Cache Heap shsorth - Shared Sort Heap
dbh - Database Heap sorth - Sort Heap
dlfmh - DFM Heap stath - Statistics Heap
fcmbp - FCMBP Heap stmth - Statement Heap
ip - Import Pool utilh - Backup/Restore/Util Heap



-m 参数选项是显示最大的内存使用上线
-w 参数选项是显示使用过程中内存达到的最大值,既watermark

-r 参数选项是重复显示 interval是重复显示的时间间隔数 count是要重复显示的次数

linux

热心网友 时间:2022-04-13 23:06

截取username前2位:
select substr(username,1,2) from user
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
中山眼科医科的吕林教擅长哪方面治疗,要怎样预约 冰箱冷冻成品区和冷冻生鲜区的区别 东京大学东洋文化研究所前身今世 简单介绍东洋武士文学 东洋西洋区别 追高被套的股票怎么操作? 求助!要有怎样的配置才能玩得起古剑奇谭或仙剑5? 我的配置玩古剑奇谭老重启和卡 高手帮忙看一下怎么解决啊 我的配置玩... 电脑任务栏微信QQ图标怎么消失? qq和微信这样的弹出窗口怎么取消 手机现在的性能太卡并且锁屏壁纸上的图片保存不了 有没有人有这张完整的图片 雨爱的秘密,是什么 EVA最终的秘密是什么?凌波丽又和真治的妈妈有什么关系? 佩恩的秘密是什么? 有谁知道拳皇坂崎由莉的袜子是什么颜色的 元杂剧是比较成熟的戏剧形式,为什么 谁知道爱的十大秘密是什么? 我国戏剧创作的盛行期是( )? 有谁知道推理要在晚餐后影山到底是什么人?为什么影山会成为凶手?丽子的秘密是什么啊? 元杂剧在对白,歌唱,歌舞,诗歌哪个显得相对薄弱稚嫩 元杂剧发展的分期问题 求大家帮回答一下 给女朋友起什么名字最好听? 秘密花园最后一集的时候林导演和一个女人,那个女人说要和他合作,是谁,她叫什么? 临汾四大家族有哪些? 想给女友取个昵称,听上去好听或者不会觉得不自然。出门在外的时候能在别人面前喊,平时私下也能喊的。 江百合的秘密是什么 给女孩子起个什么名字好听呢? 《推理要在晚餐后》日剧第十集中丽子的秘密究竟是什么 唱K小人鱼中,hipo与由莉见面的那几集叫什么? 临汾旅游景点排名是怎么样的? 网上有哪些正规贷款平台? 在大陆想把爱奇艺改为台湾版 台湾爱奇艺app 鸭蛋能和蜂蜜一起吃吗 土建工程预算清单要怎么做 蜂蜜和鸭蛋能一起吃吗 蜂蜜可以和鸭蛋一起吃吗? 蜂蜜和生鸭蛋可以同时食用吗? 46岁的林志玲手术后首现身,如今的她还似当年那么年轻美丽吗? 蜂蜜可以和鸭蛋一起煮吗? 远嫁日本之后的林志玲,容貌发生了哪些变化? 蜂蜜水可以和鸭蛋可以一起吃吗? 鸭蛋与蜂蜜能同吃吗 吃蜂蜜水可以吃鸭蛋吗 鸭蛋同蜂蜜一起蒸吃有什么好处 建筑工程预算方法? 吃了蜂蜜可以吃鸭蛋吗 咸鸭蛋和蜂蜜水能一起吃吗 喝蜂蜜水可以吃鸡蛋和鸭蛋吗 咸鸭蛋可以和蜂蜜一起吃吗