473,385 Members | 2,044 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,385 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 10710
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...

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.