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 ... REPLACE INTO my_table
- SET INTEGRITY FOR my_table IMMEDIATE CHECKED
We have just a trigger, verifying loaded data from my_table with an
another table, nothing else. SET INTEGRITY does not detect my bad
datas committed by LOAD, my_table is not in pending state
Our DB2 version is AIX 5.2 running on AIX5.2
Any idea?
Thanks for your help
D. 2 1948
"Doug" <cd***@sopragro up.comwrote in message
news:3c******** *************** ***********@s19 g2000prg.google groups.com...
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 ... REPLACE INTO my_table
- SET INTEGRITY FOR my_table IMMEDIATE CHECKED
We have just a trigger, verifying loaded data from my_table with an
another table, nothing else. SET INTEGRITY does not detect my bad
datas committed by LOAD, my_table is not in pending state
Our DB2 version is AIX 5.2 running on AIX5.2
Any idea?
Thanks for your help
D.
The Load command does not fire triggers. If you want triggers fired, you
need to use the import command.
On 13 fév, 14:01, "Mark A" <nob...@nowhere .comwrote:
"Doug" <cd...@sopragro up.comwrote in message
news:3c******** *************** ***********@s19 g2000prg.google groups.com...
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 ... REPLACE INTO my_table
- SET INTEGRITY FOR my_table IMMEDIATE CHECKED
We have just a trigger, verifying loaded data from my_table with an
another table, nothing else. SET INTEGRITY does not detect my bad
datas committed by LOAD, my_table is not in pending state
Our DB2 version is AIX 5.2 running on AIX5.2
Any idea?
Thanks for your help
D.
The Load command does not fire triggers. If you want triggers fired, you
need to use the import command.
Thanks Mark, This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
by: Jean-Marc Blaise |
last post by:
Dear all,
I have a table that contains a DATE in char(10) format. This table is
LOADed.
I put a check constraint on the column, some kind of CHECK (DATE(F) <=
DATE('9999-12-31'))
and I would like to move badly formatted field to the exception table.
The problem is I will always get SQL0180N and the record is not moved into
|
by: Jan Suchanek |
last post by:
Hello,
I have loaded a lot of tables into my database - some tables with
foreign keys, so that when I want to access the tables after the load I
get the error message that accessing the table is not possible at the
moment - i have the set the integrity of the table first... I am now
looking for a way to set the integrity for all tables at once after the
loading of many tables. Is there a way to get this done?
another question came...
|
by: Grant McLean |
last post by:
Hi
First a simple question ...
I have a table "access_log" that has foreign keys "app_id" and
"app_user_id" that reference the "application_type" and "app_user"
tables. When I insert into "access_log", the referential integrity
triggers generate these queries:
SELECT 1 FROM ONLY "public"."application_type" x
|
by: HGT |
last post by:
Hello all,
I am currently on a project which the source data come into the
databases is always dirty (not surprisingly); however, due to the
design of the database, it is very difficult to impose referential
integrity (esp. Foreign Keys) on these tables. Am I just not thinking
straight? This solution is implemented on multi RDBMS.
Example, we have 2 tables, one with a number of columns and a TIMEID
column to specify the load date (in...
| |
by: technocrat |
last post by:
I was runing load and then set integrity with for exception clause,
still the statement failed , there are some reecords in the exception
table but the actual table is still in check pending state...what s
causeing this?? i was under impression that if i use for exception the
set integrity statemtn should never fail, since it inserts all vilating
rows into exception table....
any help appreicated
the set intergrity st used is...
|
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.
|
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 COMMAND OPTIONS USING C OFF
Session 1: LOAD a TABLE
Session 2: SysCat.Tables.Status = 'C'
Session 1: SET INTEGRITY FOR table IMMEDIATE CHECKED
|
by: WTH |
last post by:
I ask because I've got a windows service I've written that manages failover
and replication for our products (or even 3rd party applications) and it
worked great right until I tested it (for ease of testing purposes) with
Internet Explorer (iexplore.exe) - I was testing handling argument list
buffer overflows.
What I found with iexplore.exe is that because my windows service is running
with high privileges (due to running under the local...
|
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...
|
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,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |