当db2发生故障需要DB2 支持部门支持时,往往需要我们提供db2support的信息,一般这样即可。 /db2/db2prd/logbak为存放生成的诊断信息的目录,可以为有权限的任意目录
bash-3.2$ db2support /db2/db2prd/logbak/ -d prd -c -s -f
_______ D B 2 S u p p o r t ______
This program generates information about a DB2 server, including
information about its configuration and system environment. The output of
this program will be stored in a file named 'db2support.zip', located
in the directory specified on the application command line. If you are
experiencing problems with DB2, it may help if this program is run
while the problem is occurring.
NOTES:
1. By default, this program will not capture any user data from tables or
logs to protect the security of your data.
2. For best results, run this program using an ID having SYSADM authority.
3. On Windows systems you should run this utility from a db2 command
session.
4. Data collected from this program will be from the machine where this
program runs. In a client-server environment, database-related
information will be from the machine