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 > How to resolve "Transaction log is full" issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-11-08, 10:01
aveerabadran aveerabadran is offline
Registered User
 
Join Date: Mar 2008
Posts: 11
How to resolve "Transaction log is full" issue

Hi,

I try to load 500,000 records in to our DB2 UDB Dev region(Ver 8.1) using load client utility. But i get the following error msg while doing it :

"SQL0964C The transaction log for the database is full. SQLSTATE=57011"

Can anyone help me in resolving this issue. Appreciate if necessary commands are also sent

Thanks,
Arunvijay
Reply With Quote
  #2 (permalink)  
Old 03-11-08, 10:59
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The LOAD command should not be using the transaction log. What is the command you are using? Also what OS is the DB2 server on?

Andy
Reply With Quote
  #3 (permalink)  
Old 03-11-08, 11:10
aveerabadran aveerabadran is offline
Registered User
 
Join Date: Mar 2008
Posts: 11
i use the following command :

db2 connect to dezwt01s user db2inst using test
db2 load client from /data/db2/db2inst/Daily_Trx_1 of del modified by delprioritychar coldel~ usedefaults MESSAGES /data/db2/db2inst/Daily_trx1.log insert into db2dba.Daily_trx_sale_cmsn_fact_1;
db2 terminate ;

it is Unix OS
Reply With Quote
  #4 (permalink)  
Old 03-11-08, 11:51
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You can add the "SAVECOUNT n" clause that might fix what you are doing.

Andy
Reply With Quote
  #5 (permalink)  
Old 03-11-08, 16:24
db2rocks db2rocks is offline
Registered User
 
Join Date: Jan 2008
Posts: 45
If it is a log issue increase primary or secondary logs or set LOGSECOND to -1 to enable infinite logging
Reply With Quote
  #6 (permalink)  
Old 03-12-08, 08:28
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
add nonrecoverable to end of the load statement = no logging...
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #7 (permalink)  
Old 03-12-08, 09:01
aveerabadran aveerabadran is offline
Registered User
 
Join Date: Mar 2008
Posts: 11
it is working fine now..thanks all for ur replies
Reply With Quote
  #8 (permalink)  
Old 12-08-10, 04:14
Pietpelgrim Pietpelgrim is offline
Registered User
 
Join Date: Dec 2010
Posts: 2
Just one more question

Can you please let us know which of the proposed solutions did help to solve the problem, thanks Piet
Reply With Quote
  #9 (permalink)  
Old 12-08-10, 04:46
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
piet
nonrecoveable at the end would have solved the problem,
przytula,
incase the table was already having the data and was having constraint on it even using
nonrecovable options will load insert it deletes and use the log for dat, please correct me on this i may be wrong.
arun
was dat the issue ??
Reply With Quote
  #10 (permalink)  
Old 12-08-10, 06:25
Pietpelgrim Pietpelgrim is offline
Registered User
 
Join Date: Dec 2010
Posts: 2
Thanks a lot Mathew-Paul

I will go for the non recoverable option, cheers, Piet
Reply With Quote
  #11 (permalink)  
Old 12-08-10, 22:46
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
Quote:
Originally Posted by guyprzytula View Post
add nonrecoverable to end of the load statement = no logging...
hello sir,

as u suggested nonrecoverable = no logging, incase we don't u this options "nonrecoverable" does it writes to log file while load ?? i believe it won't coz it ask for backup. please correct
Regds
Paul
Reply With Quote
  #12 (permalink)  
Old 12-09-10, 01:54
ravichandrapratap ravichandrapratap is offline
Registered User
 
Join Date: Dec 2010
Posts: 75
what is the command used?
Reply With Quote
  #13 (permalink)  
Old 12-09-10, 03:02
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by Mathew_paul View Post
hello sir,

as u suggested nonrecoverable = no logging, incase we don't u this options "nonrecoverable" does it writes to log file while load ?? i believe it won't coz it ask for backup. please correct
Regds
Paul

Take a look at Load command
Reply With Quote
  #14 (permalink)  
Old 12-09-10, 03:53
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
hi bella,
u mean load without nonrecoverable option does log's minimal amt of logging is done.
regds
Paul
Reply With Quote
  #15 (permalink)  
Old 12-09-10, 18:54
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Load is a minimal logging utility (in case of all load options - copy yes / copy no / nonrecoverable). The delete phase, if performed, is the only time when load can produce a substantial number of log records.
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