db2 list active databases 列出所有活动的数据库 db2 list tables for all 列出当前数据库下所有的表 db2 list tables for schema btp 列出当前数据库中schema为btp的表 db2 list tablespaces show detail 显示数据库空间使用情况 db2 list packages for all db2 "import from tab76.ixf of ixf commitcount 500...
#db2 list tablespaces show detail //在单分区上查看表空间的是否还有可用页 # db2_all list tablespaces show detail //在所有分区上查看表空间是否还有可用页 9、 检查数据库备份是否正常 请查看TSM或第三方存储管理软件,看备份映像文件是否完整的保存到了磁带机上了,想在DB2上查看备份情况,可以使用LIST命令 #d...
db2 connect to <数据库名> user <用户名> using <密码> --连接到远端数据库 2、 db2 force application all --强迫所有应用断开数据库连接 3、db2 backup db db2name<数据库名称> --备份整个数据库数据 db2 restore db <db2name> --还原数据库 4、db2 list application --查看所有连接(需要连接到具体数...
4.列出当前实例中所有激活的数据库 db2 list active databases db2 list db directory 5、删除数据库 db2 drop database test 6、查看表的空间 db2 list tablespaces [ show detail ] 注: show detail为可选项,显示更详细信息 或者db2pd -tablespaces -db 数据库名 [db2inst1@localhost ~]$ db2pd -tablespace...
6. db2 list active databases: 列出当前正在活动中的数据库。该命令将显示当前正在运行的数据库实例。 7. db2 terminate: 断开与数据库的连接。该命令将关闭与数据库的连接,并返回到操作系统命令行。 8. db2 create database database_name: 创建一个新的数据库。将database_name替换为您要创建的数据库的名称...
db2 list active databases33、查看失效数据库实例db2 deactivate database数据库名34、关闭DB2数据库服务db2stop35、查看DB2消耗资源多的SQLdb2top -d 数据库名注意:db2top是连在一起的,查看消耗资源 按照提示按 l ,出现Application Handle,记录下资源消耗大的Application Handle(stat) 按 q 退出36、测试SQL的执行...
For further help:?db2-command-helpforspecified command?OPTIONS-helpforall command options?HELP-helpforreading help screens 有个?HELP 就是帮助你阅读帮助信息的。 执行 db2 ? HELP 得到如下输出信息 代码语言:javascript 代码运行次数:0 运行 AI代码解释 ...
output_pathevent-monitor-parameters-aem-compenvcompilation_env_file-tbspnametable_space_name-B-cdcurrent degree-cfg-clcollect_level-cm-cfs-udapl-ps-purescale-co-cscurrent_schemaalldbs|all_databases-d,database name-nco-c-uuserid-ppassword-extenddb2batch-fodclist_of_FODC_directories-fodcpathfodc_...
db2 list active databases --列出所有编目的数据库 db2 list db directory --重组表tb1 db2 reorg table tb1 --更新统计信息 db2 runstats on table tb1 --表检查 db2 reorgchk update statistics on table TableName --locate 字符定位函数 values Locate('2','0123456789')--3 ...
db2 force applications all (强迫所有应用程序从数据库断开) 21. lock table lock table test in exclusive mode 22. 共享 lock table test in share mode 23. 显示当前用户所有表 list tables 24. 列出所有的系统表 list tables for system 25. 显示当前活动数据库 list active databases 26....