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 > Error log

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-11, 18:22
ricci ricci is offline
Registered User
 
Join Date: Sep 2011
Posts: 39
Question Error log

Hi...

I'm trying to get the error log from any kind of schema. I wonder if I could get it by using a query like:

SELECT * FROM SCHEMA.LOGTABLE

What I need to do is catch various kind of errors and warning in excecutions in the whole database.

Regards
Reply With Quote
  #2 (permalink)  
Old 09-09-11, 02:38
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
the same entry twice -->> the same answer twice
I hope you also finished the db2 training - it should be a mandatory prereq before coming to a forum to understand at least what you are doing.
all messages are in diag.log or in db2dump directory - there are no sysibmadm views for this - you can extract complete messages from diaglog with db2diag tool
db2diag - db2diag logs analysis tool
__________________
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-09-11, 02:39
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
and you are using db2 what?


PD_GET_DIAG_HIST table function

The table function returns log records, event records and notification records from a given facility.

PDLOGMSGS_LAST24HOURS administrative view and PD_GET_LOG_MSGS table function
This administrative view and table function return problem determination log messages that were logged in the DB2 notification log. The information is intended for use by database and system administrators.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 09-14-11, 12:22
ricci ricci is offline
Registered User
 
Join Date: Sep 2011
Posts: 39
Thumbs up Thanks

Hi sathyaram_s.

I'm using DB2 LUW V9.7 and I'm using data studio, the answer you give me is close to what i'm looking for. I mean I wanna get the log from a 'x' table, get when sombody insert a new row, update, delete, you know stuffs like that also if I try to make anything like before but is was unsuccesful.

Thanks a lot for your support
Reply With Quote
  #5 (permalink)  
Old 09-14-11, 12:59
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Sorry. I have lost the plot here. What sort of messages do you want to see?
Related to database errors or application errors ?

few example will make it easier to understand.


---
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 09-14-11, 13:34
ricci ricci is offline
Registered User
 
Join Date: Sep 2011
Posts: 39
Example

First of all thank a lot for your time.

Well lets say I've just insert a new row to Table1. I wanna get the acction (insert), the sqlcode and time where it happens. Also if was a bad excecution I mean if try to insert a character in an integer field.

Thanks.

Regards.
Reply With Quote
  #7 (permalink)  
Old 09-14-11, 15:51
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Then we are not talking about the same thing

You have created another thread for this issue. You follow up on that. This thread's subject is misleading
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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