WEB开发网
开发学院数据库DB2 DB2 9.7 轮换诊断日志和管理通知日志 阅读

DB2 9.7 轮换诊断日志和管理通知日志

 2010-02-22 00:00:00 来源:WEB开发网   
核心提示: 然后,我们发出如下命令sapsu2:db2hia5%db2updatedbmcfgusingDIAGSIZE2DB20000ITheUPDATEDATABASEMANAGERCONFIGURATIONcommandcompletedsuccessfully.重启 DB2 实例后,DB2 9.7

然后,我们发出如下命令

 sapsu2:db2hia 5% db2 update dbm cfg using DIAGSIZE 2 
 DB20000I The UPDATE DATABASE MANAGER CONFIGURATION command completed 
 successfully. 

重启 DB2 实例后,在 db2dump 目录中新生成了两个文件,db2diag.0.log 和 db2hia.0.nfy。

 sapsu2:db2hia 9% ls -lrt 
 total 30392 
 drwxrwxrwx 2 db2hia dbhiaadm 4096 Oct 25 13:47 events 
 drwxrwxr-t 2 db2hia dbhiaadm 4096 Oct 27 17:40 stmmlog 
 -rw-r----- 1 db2hia dbhiaadm 6291312 Oct 29 02:47 db2eventlog.000 
 -rw-rw-rw- 1 db2hia dbhiaadm 3148 Oct 29 02:47 db2hia.nfy 
 -rw-rw-rw- 1 db2hia dbhiaadm 5043787 Oct 29 02:47 db2diag.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 12190 Oct 29 02:47 db2diag.0.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 863 Oct 29 02:47 db2hia.0.nfy 

过一段时间后,DB2 会陆续关闭旧的诊断日志文件,创建新的诊断日志文件。

 sapsu2:hiaadm 4% ls -lrt 
 total 25472 
 drwxrwxrwx 2 db2hia dbhiaadm 4096 Oct 25 13:47 events 
 drwxrwxr-t 2 db2hia dbhiaadm 4096 Oct 27 17:40 stmmlog 
 -rw-rw-rw- 1 db2hia dbhiaadm 3148 Oct 29 02:47 db2hia.nfy 
 -rw-rw-rw- 1 db2hia dbhiaadm 5043787 Oct 29 02:47 db2diag.log 
 -rw-r----- 1 db2hia dbhiaadm 6291312 Oct 29 03:38 db2eventlog.000 
 -rw-rw-rw- 1 db2hia dbhiaadm 2775 Oct 29 03:39 db2hia.0.nfy 
 -rw-rw-rw- 1 db2hia dbhiaadm 172957 Oct 29 03:47 db2diag.6.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 172957 Oct 29 03:47 db2diag.7.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 172957 Oct 29 03:47 db2diag.8.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 172957 Oct 29 03:47 db2diag.9.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 172957 Oct 29 03:47 db2diag.10.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 172957 Oct 29 03:47 db2diag.11.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 172383 Oct 29 03:52 db2diag.12.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 172362 Oct 29 04:00 db2diag.13.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 172391 Oct 29 04:00 db2diag.14.log 
 -rw-rw-rw- 1 db2hia dbhiaadm 85909 Oct 29 04:19 db2diag.15.log 

上一页  1 2 3 4 5  下一页

Tags:DB 轮换 诊断

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接