473,287 Members | 1,663 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,287 software developers and data experts.

DB2 database integrity check?


Folks,

One of our clients is performing an audit, and the auditor(s) asked
following question, and I am not sure how to answer it:

28. Is there a control that prevents the corruption of databases (e.g. is
there database integrity checking)? Please provide a description of the
control and the name and phone number of the person who can demonstrate or
validate the control.

They are running DB2 UDB 8.2 on AIX 5.3.

Is there a db2 utility that can be executed to check the integrity of
the database?

Is db2dart the correct utility?

Is there third party software thet can use?

Thanks

--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Mar 14 '07 #1
6 10700
aj
Yes, you can use db2dart. However, on v8, db2dart should only be run
against a deactivated db, which of course implies that there are no
connections.

On v8, you can also use the inspect command, which works online (an
activated db w/ users connected):
db2 =inspect check database results inspect.out

The online inspect check processing will write out unformatted
inspection data results to the results file specified. The file will be
written out to the $DIAGPATH diagnostic data directory path. If there
are no errors found by the check processing, this result output file
will be ERASED at the end of the INSPECT operation. If there are errors
found by the check processing, this result output file will not be
erased at the end of INSPECT operation. After check processing
completes, to see inspection details, the inspection result
data will require to be formatted out with the db2inspf utility.

HTH

aj

Hemant Shah wrote:
Folks,

One of our clients is performing an audit, and the auditor(s) asked
following question, and I am not sure how to answer it:

28. Is there a control that prevents the corruption of databases (e.g. is
there database integrity checking)? Please provide a description of the
control and the name and phone number of the person who can demonstrate or
validate the control.

They are running DB2 UDB 8.2 on AIX 5.3.

Is there a db2 utility that can be executed to check the integrity of
the database?

Is db2dart the correct utility?

Is there third party software thet can use?

Thanks

--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Mar 14 '07 #2

Thanks.

While stranded on information super highway aj wrote:
Yes, you can use db2dart. However, on v8, db2dart should only be run
against a deactivated db, which of course implies that there are no
connections.

On v8, you can also use the inspect command, which works online (an
activated db w/ users connected):
db2 =inspect check database results inspect.out

The online inspect check processing will write out unformatted
inspection data results to the results file specified. The file will be
written out to the $DIAGPATH diagnostic data directory path. If there
are no errors found by the check processing, this result output file
will be ERASED at the end of the INSPECT operation. If there are errors
found by the check processing, this result output file will not be
erased at the end of INSPECT operation. After check processing
completes, to see inspection details, the inspection result
data will require to be formatted out with the db2inspf utility.

HTH

aj

Hemant Shah wrote:
>Folks,

One of our clients is performing an audit, and the auditor(s) asked
following question, and I am not sure how to answer it:

28. Is there a control that prevents the corruption of databases (e.g. is
there database integrity checking)? Please provide a description of the
control and the name and phone number of the person who can demonstrate or
validate the control.

They are running DB2 UDB 8.2 on AIX 5.3.

Is there a db2 utility that can be executed to check the integrity of
the database?

Is db2dart the correct utility?

Is there third party software thet can use?

Thanks

--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Mar 15 '07 #3
Ian
Hemant Shah wrote:
Folks,

One of our clients is performing an audit, and the auditor(s) asked
following question, and I am not sure how to answer it:

28. Is there a control that prevents the corruption of databases (e.g. is
there database integrity checking)? Please provide a description of the
control and the name and phone number of the person who can demonstrate or
validate the control.
I've seen questions like this, and this sounds like SOX compliance to
me. To us DBAs, "corruption" usually means bits getting screwed up.

However, "corruption" may be referring other "logical" errors, like
"update employees set salary = salary * 1.5 where emp_id = 'me'".

So, make sure you understand what the question is asking for: Is it
asking about logical or physical corruption of the data?

If physical, db2dart/inspect.
If logical, usually enabling auditing.
Mar 18 '07 #4
While stranded on information super highway Ian wrote:
Hemant Shah wrote:
>Folks,

One of our clients is performing an audit, and the auditor(s) asked
following question, and I am not sure how to answer it:

28. Is there a control that prevents the corruption of databases (e.g. is
there database integrity checking)? Please provide a description of the
control and the name and phone number of the person who can demonstrate or
validate the control.

I've seen questions like this, and this sounds like SOX compliance to
me. To us DBAs, "corruption" usually means bits getting screwed up.
Yes, I agree with you.
>
However, "corruption" may be referring other "logical" errors, like
"update employees set salary = salary * 1.5 where emp_id = 'me'".

So, make sure you understand what the question is asking for: Is it
asking about logical or physical corruption of the data?

If physical, db2dart/inspect.
If logical, usually enabling auditing.
I believe it is asking for both. How do I turn on auditing?

Thanks.

>
--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Mar 19 '07 #5
Hemant Shah wrote:
While stranded on information super highway Ian wrote:
>Hemant Shah wrote:
>>Folks,

One of our clients is performing an audit, and the auditor(s)
asked following question, and I am not sure how to answer it:

28. Is there a control that prevents the corruption of databases
(e.g. is there database integrity checking)? Please provide a
description of the control and the name and phone number of the
person who can demonstrate or validate the control.

I've seen questions like this, and this sounds like SOX compliance to
me. To us DBAs, "corruption" usually means bits getting screwed up.

Yes, I agree with you.
>>
However, "corruption" may be referring other "logical" errors, like
"update employees set salary = salary * 1.5 where emp_id = 'me'".

So, make sure you understand what the question is asking for: Is it
asking about logical or physical corruption of the data?

If physical, db2dart/inspect.
If logical, usually enabling auditing.

I believe it is asking for both. How do I turn on auditing?

Thanks.
Starting and stopping the audit facility is the easy part:
"db2audit start" resp. "db2audit stop"
First however, you should consider what exactly you want to audit and
configure the audit facility accordingly with the many options of "db2audit
configure".
Check the DB2 Information Centre, starting at:
http://publib.boulder.ibm.com/infoce...n/c0005483.htm

Also read this 3-page article at:
http://www.databasejournal.com/featu...le.php/3438801

HTH

--
Jeroen
Mar 19 '07 #6
While stranded on information super highway The Boss wrote:
Hemant Shah wrote:
>While stranded on information super highway Ian wrote:
>>Hemant Shah wrote:
Folks,

One of our clients is performing an audit, and the auditor(s)
asked following question, and I am not sure how to answer it:

28. Is there a control that prevents the corruption of databases
(e.g. is there database integrity checking)? Please provide a
description of the control and the name and phone number of the
person who can demonstrate or validate the control.
I've seen questions like this, and this sounds like SOX compliance to
me. To us DBAs, "corruption" usually means bits getting screwed up.

Yes, I agree with you.
>>>
However, "corruption" may be referring other "logical" errors, like
"update employees set salary = salary * 1.5 where emp_id = 'me'".

So, make sure you understand what the question is asking for: Is it
asking about logical or physical corruption of the data?

If physical, db2dart/inspect.
If logical, usually enabling auditing.

I believe it is asking for both. How do I turn on auditing?

Thanks.

Starting and stopping the audit facility is the easy part:
"db2audit start" resp. "db2audit stop"
First however, you should consider what exactly you want to audit and
configure the audit facility accordingly with the many options of "db2audit
configure".
Check the DB2 Information Centre, starting at:
http://publib.boulder.ibm.com/infoce...n/c0005483.htm
Thanks for the info. I will look it up.
Also read this 3-page article at:
http://www.databasejournal.com/featu...le.php/3438801

HTH

--
Jeroen

--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Mar 20 '07 #7

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

Similar topics

19
by: dchow | last post by:
Our database size is currently 4G and is incrementing at a rate of 45M/day. What is the max size of a SQL database? And what is the size beyond which the server performance will start to go down?
2
by: Jim Andersen | last post by:
Hi, Used the wizard to create a maintenance plan for a db. But it fails most of the time. I checked the log-files. At 1.00 AM, it runs the "Optimizations" job for 6-9 seconds. It succeeds...
4
by: maricel | last post by:
I have the following base table structure - DDL: CREATE TABLE "ADMINISTRATOR"."T1" ( "C1" INTEGER NOT NULL ) IN "TEST_TS" ; ALTER TABLE "ADMINISTRATOR"."T1" ADD PRIMARY KEY
4
by: Martin Pritchard | last post by:
Hi, I'm working on a project that historically contains around 40 enums. In the database various fields refer to the int values of these enums, but of course ref integrity is not enofrced and...
1
by: Dennis Gearon | last post by:
I'd like to get people's feelings about the topic. At one extreme is to use table locking and external language queries to even do referential integerity - a la Old (present?) MySQL/PHP. A more...
30
by: Wes | last post by:
On a nightly basis, we shut the database down and do a file system backup. A short chronology of our database problem: 8/21 - count(*) of user tables succeeded (done once a week to get...
12
by: technocrat | last post by:
I am trying to laod 2 tables and set integrtiy on them, but the second tables fails ( both are related and SET INTEGRITY ion first table succeeds) saying constraint violation....is there a way to...
16
by: Brian Tkatch | last post by:
Is there a way to check the order in which SET INTEGRITY needs to be applied? This would be for a script with a dynamic list of TABLEs. B.
5
by: djhexx | last post by:
Hello. I have an ASP.NET application (C#) that I allow users to upload files. Files get stored in a SQL2005 database. The file data is stored in a varbinary(max) column. When the user uploads...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.