Page 1 of 1

Identify the user who deleted a record from a table in IBM DB2?

Posted: Sat Feb 11, 2017 11:40 pm
by Kishor Sonawane
Hi - Can we identify the user who deleted a record from a table in IBM DB2? What is command to get it or do we need to do some setup before we can get this information. Please advise.

Re: Identify the user who deleted a record from a table in IBM DB2?

Posted: Mon Feb 13, 2017 11:30 am
by Anuj Dhawan
If you've audit facility turned ON beforehand prior to record being deleted, you might capture it. The audit trace enables you to trace different events or categories of events by authorization IDs, object ownership, and so on. And when you start the trace, you choose the events to audit by specifying one or more audit classes. Description of them can be found here:

https://www.ibm.com/support/knowledgece ... trace.html

OTOH, if you some tools like CA Log Analyzer or Platinum Tool - they might also allow you to look for such an information but I can not confirm for sure.

Re: Identify the user who deleted a record from a table in IBM DB2?

Posted: Mon Feb 13, 2017 2:34 pm
by Kishor Sonawane
Thanks Anuj.

Can we get some information from DB2 logs too?

Re: Identify the user who deleted a record from a table in IBM DB2?

Posted: Wed Feb 15, 2017 11:26 am
by Anuj Dhawan
Logs would not really give information on "who did it" but "what happened" can be answered mostly, AFAIK.

Re: Identify the user who deleted a record from a table in IBM DB2?

Posted: Wed Feb 15, 2017 1:37 pm
by Kishor Sonawane
Thanks Anuj.

Re: Identify the user who deleted a record from a table in IBM DB2?

Posted: Thu Feb 16, 2017 11:32 am
by Anuj Dhawan
You're welcome.