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 > How to read db2 log file on NT/XP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-03, 10:59
stenx stenx is offline
Registered User
 
Join Date: Dec 2003
Posts: 12
How to read db2 log file on NT/XP

I'm using db2 udb v7.2 on NT and
when I open log file I can't read it clearly.

what's the problem?
what I wrong?
Reply With Quote
  #2 (permalink)  
Old 12-03-03, 11:03
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Which log file are you talking about? If it is db2diag.log try opening with MS Wordpad.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 12-03-03, 11:12
stenx stenx is offline
Registered User
 
Join Date: Dec 2003
Posts: 12
The files under SQLOGDIR folder.
For example S0000000.LOG.


Quote:
Originally posted by Marcus_A
Which log file are you talking about? If it is db2diag.log try opening with MS Wordpad.
Attached Files
File Type: zip s0000596.zip (8.5 KB, 43 views)
Reply With Quote
  #4 (permalink)  
Old 12-03-03, 11:16
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Those are the log files that are used for DB2 recovery. They are for internal use by DB2 and are not meant to be read in text format.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 12-03-03, 11:22
stenx stenx is offline
Registered User
 
Join Date: Dec 2003
Posts: 12
Thank you for your reply.
My problem is where i can read transactions on db?


Quote:
Originally posted by Marcus_A
Those are the log files that are used for DB2 recovery. They are for internal use by DB2 and are not meant to be read in text format.
Reply With Quote
  #6 (permalink)  
Old 12-03-03, 11:31
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Unless you log changes yourself to another table (perhaps with a trigger), you can't easily see the before or after images on the log. There may be some 3rd party tools that can read the log. I would check with BMC Software for starters.

Going forward, you might be able to use a monitor or trace to track transactions that have run and the SQL statements, but I am not sure what information you want (name of transaction, SQL statements, or actual changes to the data).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #7 (permalink)  
Old 12-04-03, 09:22
richardluopeng richardluopeng is offline
Registered User
 
Join Date: Nov 2003
Posts: 14
u can not read it
Reply With Quote
  #8 (permalink)  
Old 12-05-03, 05:48
gdipietro80 gdipietro80 is offline
Registered User
 
Join Date: Oct 2003
Location: Rome
Posts: 15
I think that you can read the statement of your applications with
db2 get snapshot for dynamic sql on ...
Reply With Quote
  #9 (permalink)  
Old 03-02-12, 16:06
HenriqueCrang HenriqueCrang is offline
Registered User
 
Join Date: Mar 2012
Posts: 1
I'm having the problem here. I need to read the SQL Statements that have just been executed in the DB2.

I have ran the 'db2 get snapshot for dynamic sql on ...' but it seens that the information he returned is not cronologicaly ordered.

Is there a way to have this statement ordered cronologicaly?
Reply With Quote
  #10 (permalink)  
Old 03-02-12, 21:52
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Try event monitor for statements
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