DB2的诊断日志路径

默认地址

$INSTANCEUSER_HOME/sqllib/db2dump下

db2set -all

查看

DB2INSTPROF参数的值

其就是路径

文件名字为db2diag.log

更改文件路径

get dbm cfg;

Diagnostic data directory path (DIAGPATH) = /home/db2inst1/sqllib/db2dump

修改参数

db2 => update dbm cfg using DIAGPATH /home/db2inst1/sqllib/db2dump2;
SQL5137N The entry in the database manager configuration file for the
diagnostic directory path (diagpath) is invalid.
这里没有成功,是路径不存在

mkdir /home/db2inst1/sqllib/db2dump2

然后在执行

db2 => update dbm cfg using DIAGPATH /home/db2inst1/sqllib/db2dump2;

DB20000I The UPDATE DATABASE MANAGER CONFIGURATION command completed
successfully.

你可能感兴趣的:(db2)