If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > where is stmmlog directory ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-30-09, 15:46
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
where is stmmlog directory ?

does anybody know where stmmlog directory locates (db2 v9.5)? trying to find a better way of monitoring params changes than submitting 'db2 get db cfg show detail command > file' every 15 mins. thanks
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS

Last edited by MarkhamDBA; 04-30-09 at 15:51.
Reply With Quote
  #2 (permalink)  
Old 04-30-09, 16:01
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
should be in the same dir where you have your db2diag.log. look for stmmlog dir
Reply With Quote
  #3 (permalink)  
Old 04-30-09, 16:56
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
/sqllib/db2dump/stmmlog>
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #4 (permalink)  
Old 05-01-09, 02:35
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
TIP: curious where your db2diag log file is?
Type "db2diag -A". A new log file will be created and the old one is renamed (timestamp added). The output of the command shows the path
Reply With Quote
  #5 (permalink)  
Old 10-01-09, 11:49
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Another spin on the stmmlog directory.

Another DBA has created a db for him self to play with. Turned on STMM and now it is flooding db2diag.log with junk complaining about this directory.

2009-10-01-10.36.29.667840-300 E611798522A652 LEVEL: Warning (OS)
PID : 4821160 TID : 1 PROC : db2stmm (XXXXXX) 1
INSTANCE: userid NODE : 001 DB : XXXXXX
APPHDL : 1-1114 APPID: *N0.aaaaaa.090928030149
AUTHID : userid
FUNCTION: DB2 UDB, oper system services, sqlomkdirp, probe:100
MESSAGE : ZRC=0x840F0001=-2079391743=SQLO_ACCD "Access Denied"
DIA8701C Access denied for resource "", operating system return code
was "".
CALLED : OS, -, unspecified_system_function
OSERR : EACCES (13) "Permission denied"
DATA #1 : File name, 17 bytes
/jhdfjhl/stmmlog

This directory is not there. I have searched documentation and the only refferences to it in there is this directory is used to store changes done by STMM. Does one need to create this directory first? Or does it mean that instance has no write access to create this directory?
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #6 (permalink)  
Old 10-01-09, 15:54
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
0x840F0001 maps to:
SQL0970N The system attempted to write to a read-only file

sqlomkdirp - this is supposed to create a dir. The error is coming back from the OS. So, it looks like AUTHID "userid" doesn't have enough permission to create a dir. Try creating stmmlog using the instance owner id (if it doesn't exist) and give userid permission to write to it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On