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 > Transaction log is full

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-11, 10:28
Marco309 Marco309 is offline
Registered User
 
Join Date: May 2011
Posts: 4
Transaction log is full

Hi there,

iīve got some problems while loading a table on DB2(9.7 FP2).

The command looks like similar to this one:

LOAD CLIENT FROM "data.csv" OF DEL MODIFIED BY COLDEL0x09 METHOD P (1, 2, 3, 4, 5, 6, 7, 8, 9) MESSAGES "logs.txt" REPLACE INTO SCHEMA.TABLE (1, 3, 2, 5, 4, 7, 6, 9, 8) NONRECOVERABLE

This command always failed with the message: "The transaction log for the database is full"

I donīt understand this, because the Option NONRECOVERABLE is set.
Why did this happen?

To prevent this error i could increase the logfilesize (LOGFILSIZ, LOGPRIMARY, LOGSECOND), but i donīt want to do that.

What can i do there?

Regards,
Marco
Reply With Quote
  #2 (permalink)  
Old 05-04-11, 00:20
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Do you see load performing a delete phase?

See this thread for some information:
Load command
Reply With Quote
  #3 (permalink)  
Old 05-04-11, 03:08
Marco309 Marco309 is offline
Registered User
 
Join Date: May 2011
Posts: 4
Hi,

the load is performing a delete:

2011-05-04-08.50.04.921229+120 I295585E545 LEVEL: Warning
PID : 2977 TID : 140625332660560PROC : db2sysc 0
INSTANCE: xxxxx NODE : 000 DB : xxxxx
APPHDL : 0-4930 APPID: xxxxx
AUTHID : xxxxx
EDUID : 129 EDUNAME: db2agent (xxxxx) 0
FUNCTION: DB2 UDB, database utilities, sqlulPrintPhaseMsg, probe:314
DATA #1 : String, 101 bytes
LOADID: 129.2011-05-04-08.49.42.998852.0 (3;3)
Starting DELETE phase at 2011-05-04 08.50.04.921137.
Reply With Quote
  #4 (permalink)  
Old 05-04-11, 05:26
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Correct your input file so that db2 doesn't have to execute this phase.
Reply With Quote
  #5 (permalink)  
Old 05-04-11, 05:45
Marco309 Marco309 is offline
Registered User
 
Join Date: May 2011
Posts: 4
Hmm.... would it help to bring the columns in the correct position?
Reply With Quote
  #6 (permalink)  
Old 05-04-11, 07:59
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
No, it would not. During the DELETE phase duplicate rows (those that violate unique constraints on the table) are being deleted. Remove duplicate rows from the input file.
Reply With Quote
  #7 (permalink)  
Old 05-04-11, 08:44
Marco309 Marco309 is offline
Registered User
 
Join Date: May 2011
Posts: 4
Thatīs it. Thank you!
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