473,405 Members | 2,210 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,405 software developers and data experts.

set integrity command

I have 120 tables which mostly dependent to each other. Just did a
db2move for all data. Now causing SQL0668 error when accessing tables
with dependencies.
Now I am running SET INTEGRITY command for each tables one-by-one. :(

Is there a way to run SET INTEGRITY the parent table and cascade the
state to child table? If yes, what's the syntax?

Oct 13 '06 #1
5 7554
mahhsuri wrote:
I have 120 tables which mostly dependent to each other. Just did a
db2move for all data. Now causing SQL0668 error when accessing tables
with dependencies.
Now I am running SET INTEGRITY command for each tables one-by-one. :(

Is there a way to run SET INTEGRITY the parent table and cascade the
state to child table? If yes, what's the syntax?
Take a look at the syntax diagram. SET INTEGRITY accepts a list of table
names.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Oct 13 '06 #2
mahhsuri wrote:
I have 120 tables which mostly dependent to each other. Just did a
db2move for all data. Now causing SQL0668 error when accessing tables
with dependencies.
Now I am running SET INTEGRITY command for each tables one-by-one. :(

Is there a way to run SET INTEGRITY the parent table and cascade the
state to child table? If yes, what's the syntax?
http://publib.boulder.ibm.com/infoce...n/r0000998.htm

Hint: SET INTEGRITY FOR tab1, tab2 ...

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Oct 13 '06 #3
Knut Stolze wrote:
http://publib.boulder.ibm.com/infoce...n/r0000998.htm

Hint: SET INTEGRITY FOR tab1, tab2 ...

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
But if any of the listed tables are not in check pending state, then
the entire statement fails.

Hint: I would really like to see this changed.

Oct 13 '06 #4
Mark A wrote:
Knut Stolze wrote:
>>
http://publib.boulder.ibm.com/infoce...n/r0000998.htm
>>
Hint: SET INTEGRITY FOR tab1, tab2 ...

But if any of the listed tables are not in check pending state, then
the entire statement fails.
You can query the system catalog tables (SYSCAT.TABLES) up front to
determine the tables that need SET INTEGRITY to be run agains them.
Hint: I would really like to see this changed.
Then you may want to open a PMR.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Oct 16 '06 #5
"Knut Stolze" <st****@de.ibm.comwrote in message
news:eg**********@lc03.rz.uni-jena.de...
Then you may want to open a PMR.
--
Knut Stolze
DB2 Information Integration Development
IBM Germany
It's not a defect, rather it would be an additional feature that I would
like to see added (and a lot of other DBA's would like to see added).
Oct 16 '06 #6

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

Similar topics

3
by: Nagib Abi Fadel | last post by:
HI, let's say i have a tansaction table called TRANSACTION (transaction_id,amount,type,type_id) Let's say a transaction can have multiple types: TYPE1, TYPE2 for example. EACH type has his...
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
2
by: Brice | last post by:
Hello, Sorry if this is a basic question but I can't seem to find the answer in the DB2 tutorial series or my DB2 manuals. How does one check the data integrity and referential integrity of an...
6
by: Christian Rank | last post by:
Hello, I came across the following problem with integrity constraints and PL/pgSQL (PostgreSQL version used: 7.4.2): I defined the following tables, constraints and data: create table a (n...
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...
80
by: Andrew R | last post by:
Hi I'm creating a series of forms, each with with around 15-20 text boxes. The text boxes will show data from tables, but are unbound to make them more flexible. I want the form to be used...
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.
1
by: Brian Tkatch | last post by:
A few questions about SET INTEGRITY. 1) Docs: The SET INTEGRITY statement is under transaction control. Using two sessions (different user, even) i tried the following. Session 1: UPDATE...
2
by: Doug | last post by:
Hi all, I have an issue with SET INTEGRITY after loading my table. Set integrity does not see integrity violations checking by trigger. My shell script does the following steps: - LOAD FROM ......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...
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
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...

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.