db2相关命令

db2 list db directory   列出所有数据库

db2 list tablespaces show detail  显示数据库空间使用情况

db2 list tables for all  列出当前数据库下所有的表

db2 list db directory  :列出当前实例下的所有数据库

db2 list applications:列出所有对数据库的连接

db2 list tables for schema feas2_as 列出当前数据库中所有表

db2 list tablespaces show detail 查看表空间

 

db2 describe indexes for table DB2INST1.F_SAN_LOG show detail 查看索引

db2 describe table 模式名称.表名称   显示表结构

 

db2 get conncetion state 显示当前连接的数据库

db2 get instance :显示当前实例

db2 get database manager configuration for 简写为 db2 get dbm cfg for 查看配置

db2 get db cfg show detail | grep PCKCACHESZ 查看数据包高速缓存大小

db2 get dbm cfg |grep authentication authentication

db2 get dbm cfg | grep -i service

db2 select tabname from syscat.tables where tabschema=current schema  获取当前模式下面的所有用户表

 

db2level  查看DB2版本

db2set -all

db2 get dbm cfg | grep SVCE

grep -i db2 /etc/services

db2 update dbm cfg using svcename db2inst1

db2 update db cfg for test9 using STMTHEAP 10000

db2 update db cfg for test9 using PCKCACHESZ 4452

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值