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 > db2diag tool doesn't use attached instance db2diag.log

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-06-11, 00:48
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
db2diag tool doesn't use attached instance db2diag.log

8.2/9.1 on Windows

It's been a while since I've worked on a Windows environment and this one has several instances defined on the same box. I would have assumed that when I run db2diag that it picks up the db2diag.log of the instance I am currently attached to, but it's not doing this. I can specifiy the path to the diag.log in the db2diag command and this works fine.... but if I don't specify a path to the file it looks like it defaults to the db2diag.log of the first created instance.

Can't find any doco on this.... Normal behavior or a poorly configured install?

Last edited by meehange; 09-06-11 at 01:20.
Reply With Quote
  #2 (permalink)  
Old 09-06-11, 02:10
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
have you tried : set db2instance=xxx to work with that instance instead of attach
execute db2diag..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 09-06-11, 07:55
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by meehange View Post
I would have assumed that when I run db2diag that it picks up the db2diag.log of the instance I am currently attached to
Why would you? db2diag is an application that runs in its own process space, and as such it has no way of knowing what db2bp (another application) is attached to.
Reply With Quote
  #4 (permalink)  
Old 09-06-11, 20:14
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
Quote:
Originally Posted by n_i View Post
Why would you? db2diag is an application that runs in its own process space, and as such it has no way of knowing what db2bp (another application) is attached to.
I dunno, I would have though the utility a little more useful/user friendly if it were context sensitive. After all I'm obviously more likely to want to perform diagnostics on the instance/DB that I'm currently connected to, right?

przytula_guy - that worked a treat, thanks
Reply With Quote
Reply

Tags
db2diag

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