Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old March 7th, 2006, 05:57 PM
TheSpongebob
Guest
 
Posts: n/a
Default Puzzled

Hi,

On running a load, I get the following summary:
What are the rows deleted ? There were more rows thatn that there to
begin with.


Number of rows read = 64692
Number of rows skipped = 0
Number of rows loaded = 64692
Number of rows rejected = 0
Number of rows deleted = 89
Number of rows committed = 64692

load from tab.dat of del modified by usedefaults pagefreespace=0
totalfreespace=0 chardel_ coldel~ decpt. replace into db.tab
NONRECOVERABLE




  #2  
Old March 7th, 2006, 06:45 PM
Knut Stolze
Guest
 
Posts: n/a
Default Re: Puzzled

TheSpongebob wrote:
[color=blue]
> Hi,
>
> On running a load, I get the following summary:
> What are the rows deleted ? There were more rows thatn that there to
> begin with.
>
>
> Number of rows read = 64692
> Number of rows skipped = 0
> Number of rows loaded = 64692
> Number of rows rejected = 0
> Number of rows deleted = 89
> Number of rows committed = 64692
>
> load from tab.dat of del modified by usedefaults pagefreespace=0
> totalfreespace=0 chardel_ coldel~ decpt. replace into db.tab
> NONRECOVERABLE[/color]

Well, what are the other messages (the ones before that summary) telling
you?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
  #3  
Old March 7th, 2006, 09:05 PM
Serge Rielau
Guest
 
Posts: n/a
Default Re: Puzzled

TheSpongebob wrote:[color=blue]
> Hi,
>
> On running a load, I get the following summary:
> What are the rows deleted ? There were more rows thatn that there to
> begin with.
>
>
> Number of rows read = 64692
> Number of rows skipped = 0
> Number of rows loaded = 64692
> Number of rows rejected = 0
> Number of rows deleted = 89
> Number of rows committed = 64692
>
> load from tab.dat of del modified by usedefaults pagefreespace=0
> totalfreespace=0 chardel_ coldel~ decpt. replace into db.tab
> NONRECOVERABLE
>[/color]
I think these are due to unique key violations.

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
  #4  
Old March 7th, 2006, 11:35 PM
TheSpongebob
Guest
 
Posts: n/a
Default Re: Puzzled

Thanx. Key violations they were !

DB2 "deleted" some rows on me. Mind you, the rows were never actually
on the table and they weren't "deleted" off the flat file ...
I learned how to dump the messages too for next time.

Thanx guys.

  #5  
Old March 8th, 2006, 01:45 AM
Pierre Saint-Jacques
Guest
 
Posts: n/a
Default Re: Puzzled

LOAD has the responsability to get the data in there as fast as possible.
So duplicate key are not immediately checked and are therefore put into the
page. In the second phase of the load, the indexes are either maintained
and or rebuilt. At that point the load will recognize duplicate keys on
unique indexes. The row being already in the table, it is deleted.
If you run the same load with the following ... FOR EXCEPTION
tabschema.tabname
then load will keep the first key encountered and insert into the exception
table any duplicate subsequently met.
Please note that only for duplicate keys, both the delete and insert will be
logged.

So, as previously mentioned your 89 rows were most probably duplicate keys
deleted.

HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"TheSpongebob" <gastcom@sympatico.ca> a écrit dans le message de news:
1141773877.973969.237190@i40g2000cwc.googlegroups. com...[color=blue]
> Thanx. Key violations they were !
>
> DB2 "deleted" some rows on me. Mind you, the rows were never actually
> on the table and they weren't "deleted" off the flat file ...
> I learned how to dump the messages too for next time.
>
> Thanx guys.
>[/color]

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.