| |
|
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.
|
 |

03-11-08, 10:01
|
|
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
|
|

03-11-08, 10:59
|
|
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
|
|

03-11-08, 11:10
|
|
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
|
|

03-11-08, 11:51
|
|
Registered User
|
|
Join Date: Jan 2003
Posts: 3,575
|
|
You can add the "SAVECOUNT n" clause that might fix what you are doing.
Andy
|
|

03-11-08, 16:24
|
|
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
|
|

03-12-08, 08:28
|
|
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
|
|

03-12-08, 09:01
|
|
Registered User
|
|
Join Date: Mar 2008
Posts: 11
|
|
it is working fine now..thanks all for ur replies 
|
|

12-08-10, 04:14
|
|
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
|
|

12-08-10, 04:46
|
|
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 ??
|
|

12-08-10, 06:25
|
|
Registered User
|
|
Join Date: Dec 2010
Posts: 2
|
|
|
Thanks a lot Mathew-Paul
I will go for the non recoverable option, cheers, Piet
|
|

12-08-10, 22:46
|
|
Registered User
|
|
Join Date: Oct 2007
Posts: 200
|
|
Quote:
Originally Posted by guyprzytula
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
|
|

12-09-10, 01:54
|
|
Registered User
|
|
Join Date: Dec 2010
Posts: 75
|
|
what is the command used?
|
|

12-09-10, 03:02
|
|
∞∞∞∞∞∞
|
|
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
|
|
Quote:
Originally Posted by Mathew_paul
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
|
|

12-09-10, 03:53
|
|
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
|
|

12-09-10, 18:54
|
|
∞∞∞∞∞∞
|
|
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.
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|