473,657 Members | 2,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4189
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
2307
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 flattery (but true) that this group has a bunch of the nicest and most knowledgeable Usenet people around, and I know for a fact that there are some pretty good spam- related tools written in Python, so I thought I might get away with it :-) Yes,...
4
1820
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 NEW so I don't have to retrieve them all. If you have experience with this kind of thing, you know that the server creates unique IDs for all the messages, but this IDs are not guaranteed to be unique, since they can be reused once a message is...
15
3306
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) { var range = document.selection.createRange(); if (range.parentElement() == element) range.text = '<' + tag + '>' + range.text + '<\/' + tag + '>'; }
10
5303
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 certain control by id, but I want to find all controls of a certain type (DropDownList in this case). Is there an easier way than to get a control count of the page, loop through all controls on that page, examine their type and, if they're a...
1
4242
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 when my application is trying to insert a record from a formview. It works fine for delete, update, but insert just keeps failing. I have removed the OldValuesParameterFormatString="original_{0}" from the
6
5791
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 replace the second string in its place. Note: First and Second string might not be of the same length. E.g.: First string: "cat" Second string: "camel" Third string: "concatenate"
0
1505
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 ID="CatalogItemsListDataSource" runat="server" DeleteMethod="DeleteCatalogItem" InsertMethod="InsertCatalogItem" OldValuesParameterFormatString="original_{0}" SelectMethod="GetCatalogItemsList" TypeName="CatalogItemManager" UpdateMethod="UpdateCatalogItem">...
11
1421
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 array I've created, I save the first number and the new input number in a new array with size two and delete the first array from memory. This goes on until total of twenty numbers are input into the program. But is it possible to delete...
7
9863
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 time. Its not deleting the rows when I tried the second time. I debugged the code and its actually going through the delete step but the row is not getting deleted as it did the first time. Please help. Thanks in advance. Function...
0
8302
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.