If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > records deleted when used load statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-25-09, 23:49
db2raja db2raja is offline
Registered User
 
Join Date: Mar 2009
Posts: 21
records deleted when used load statement

Hi All,
I am loading the data into many tables I have successfully loaded data into all the tables but only 3 tables I have problem with.

1. for one table, I used load statement to load the data from a ixf file and when the load utility completed I see some records are deleted. How can I load the table again with complete data. Please help me.

2. And in other 2 tables when they are check pending state. I am not able to remove the check pending state with set integrity. So, I created the exception tables for these two tables and set the integrity with using the exception tables then the check pending state is removed. But some of the records are there in these exception tables. How can I bring the complete data back to the original tables. Please respond.

I appreciate for immediate help...

DB2 Version : 8.2
AIX version : 5.3

Thanks
Raja.
Reply With Quote
  #2 (permalink)  
Old 03-26-09, 00:30
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Records are rejected for a reason. The load process will delete records that violate unique constraints. Similarly, after SET INTEGRITY records that violate referential constraints (i.e. do not have corresponding foreign key values) are rejected as exceptions. If you insist on loading inconsistent data you will have to drop the corresponding constraints; however, I would suggest you verify your source data and make sure they do not have records that are not consistent with the target.
Reply With Quote
  #3 (permalink)  
Old 03-26-09, 01:11
db2raja db2raja is offline
Registered User
 
Join Date: Mar 2009
Posts: 21
Thanks nick for your prompt response. Can you please explain me in detail what are the steps that needs to be taken in order to solve this..
Reply With Quote
  #4 (permalink)  
Old 03-26-09, 07:49
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by db2raja
Can you please explain me in detail what are the steps that needs to be taken in order to solve this..
Certainly.

1. Go to IBM - DB2 - Data server - database software - database management - open source
2. RTFM
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On