473,671 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10735
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
descriptio n 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
21210
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
1612
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 always. At 1.05 AM, for 1 second, it runs "integrity check", but most of the time it fails, and says that it couldn't switch to single-user because other users
4
15819
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
5588
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 when looking at the db we can't tell what the value in a field represents. The other problem is that our enums are currently all stored in a single class, which means that because of no visibility constraints the enums are often used out of context...
1
1356
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 realistic low end is to use Postgres or something more towards heavy iron (if necessary) and use referential integrity, data integrity, check cababilities. At the other end is to only allow access to normal operation of the database via...
30
3399
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 statistics) 8/23 - A specific search on a specific value (one out of over 2 million) caused postmaster to SEGV. I dropped the index in question and rebuilt it. All appeared ok.
12
2383
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 find out which records are violating....?? may be through try catch a SQLException...??? but how?? any suggestions are welcome!
16
5654
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
2317
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 the file, I store it in a database. When a user requests to download a file, the file is retrieved from the database and then sent to them. The files go in there ok. This is how I store them:
0
8401
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
8926
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...
1
8603
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8673
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6236
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
5703
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
4416
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2818
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1815
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.