473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

I would like to find a log about a DELETE

We've got a DB2 installed on AIX server;
now I can't find many records related to a specif table, so my opinion
is that these records have been CANCELLED in a way I don't Know maybe
with some delete instructions..

the question is:
is there a log file where have been registered the DELETE/UPDATE
operations on the tables?

Thank You!
Domenico.

Feb 8 '07 #1
5 4157
gd*****@libero.it wrote:
We've got a DB2 installed on AIX server;
now I can't find many records related to a specif table, so my opinion
is that these records have been CANCELLED in a way I don't Know maybe
with some delete instructions..

the question is:
is there a log file where have been registered the DELETE/UPDATE
operations on the tables?
The regular DB2 logs would contain such changes. But I don't think that's
really what you are asking for, is it?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Feb 8 '07 #2
On 8 Feb, 21:08, Knut Stolze <sto...@de.ibm.comwrote:
gdor...@libero.it wrote:
We've got a DB2 installed on AIX server;
now I can't find many records related to a specif table, so my opinion
is that these records have been CANCELLED in a way I don't Know maybe
with some delete instructions..
the question is:
is there a log file where have been registered the DELETE/UPDATE
operations on the tables?

The regular DB2 logs would contain such changes. But I don't think that's
really what you are asking for, is it?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Yes it is....
where I can found it?

Feb 9 '07 #3
gd*****@libero.it wrote:
On 8 Feb, 21:08, Knut Stolze <sto...@de.ibm.comwrote:
>gdor...@libero.it wrote:
We've got a DB2 installed on AIX server;
now I can't find many records related to a specif table, so my opinion
is that these records have been CANCELLED in a way I don't Know maybe
with some delete instructions..
the question is:
is there a log file where have been registered the DELETE/UPDATE
operations on the tables?

The regular DB2 logs would contain such changes. But I don't think
that's really what you are asking for, is it?

Yes it is....
where I can found it?
You should explain what your goal is. Do you want to restore the deleted
data? Or do you want to figure out who deleted it when?

The DB2 logs can be found in the directory specified in your DB CFG
parameter "Path to log files". Those are binary files and used by DB2 to
ensure the durability and atomicity of transactions (basic DBMS admin
knowledge). You could use the log reader API to access those log file.
However, the API
(http://publib.boulder.ibm.com/infoce...n/r0001910.htm)
does not explain each and every bit in the log records. The log record can
and does change with new requirements being implemented in DB2.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Feb 9 '07 #4
I want to figure out who deleted it and when..

Sorry for my not perfect English!! : ))

On 9 Feb, 08:39, Knut Stolze <sto...@de.ibm.comwrote:
gdor...@libero.it wrote:
On 8 Feb, 21:08, Knut Stolze <sto...@de.ibm.comwrote:
gdor...@libero.it wrote:
We've got a DB2 installed on AIX server;
now I can't find many records related to a specif table, so my opinion
is that these records have been CANCELLED in a way I don't Know maybe
with some delete instructions..
the question is:
is there a log file where have been registered the DELETE/UPDATE
operations on the tables?
The regular DB2 logs would contain such changes. But I don't think
that's really what you are asking for, is it?
Yes it is....
where I can found it?

You should explain what your goal is. Do you want to restore the deleted
data? Or do you want to figure out who deleted it when?

The DB2 logs can be found in the directory specified in your DB CFG
parameter "Path to log files". Those are binary files and used by DB2 to
ensure the durability and atomicity of transactions (basic DBMS admin
knowledge). You could use the log reader API to access those log file.
However, the API
(http://publib.boulder.ibm.com/infoce...ic/com.ibm.db2....)
does not explain each and every bit in the log records. The log record can
and does change with new requirements being implemented in DB2.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany- Nascondi testo tra virgolette -

- Mostra testo tra virgolette -

Feb 13 '07 #5
gd*****@libero.it wrote:
I want to figure out who deleted it and when..
The logs don't tell you _who_ deleted data. You could only figure out when
that happened.

I guess what you really need (or had needed) is some auditing facility.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Feb 13 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Fred Pacquier | last post by:
First off, sorry for this message-in-a-bottle-like post... I haven't been able to phrase my questions well enough to get a meaningful answer from Google in my research. OTOH, it is standard...
4
by: Madestro | last post by:
Hi guys, I am making a small program to retrieve e-mails from POP accounts. I got all the e-mail parsing stuff figured out, but I cannot seem to come up with a way to find out which e-mails are...
15
by: lawrence | last post by:
Is this the correct way to test for a method before I use it? createRange() is, I believe, an IE only method. function wrapSelectionInTag(selection, tag) { if (document.selection.createRange)...
10
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a...
1
by: tparks69 | last post by:
I get the error: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Insert' that has parameters: last_name, first_name, email, role_id, user_id, modified_by, modified_date...
6
by: Registered User | last post by:
Hi experts, I'm trying to write a program to solve the following exercise: Accept three strings from the user. Find the first occurrence of the first string in the third string. If it is present...
0
by: Bryce | last post by:
I have an ObjectDataSource binding a GridView, with Delete enabled. The following is the declaration (with non-delete stuff left out to save space): <asp:ObjectDataSource...
11
by: xicloid | last post by:
I'm trying to write a program that saves numbers without any duplications. I was thinking I could start by storing the first number in an array with size one, and if the next number is not in the...
7
by: AccessHunter | last post by:
I am using the following code to find and delete records in a table. The logic will go through each record and if a duplicate row is found will delete it. I ran this code and it worked the first...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.