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 01-11-06, 09:53
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
Transaction log is full

I am importing data into database and I imported all the files except 2 because I am getting "The transaction log for the database is full" error. I realize that the table I am trying to load has already 2100830 rows.

I tried to delete the data from this table but I got the same "The transaction log for the database is full" error.

How do I shrink or remove the transaction log ?

AIX 5.2 DB2 8.1.5

Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-11-06, 10:42
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
can you post a script? Are you using db2move? If you are using a db2move you have only two options. 1. DO NOT use db2move it does not commit data. 2. rewrite to use load with a commit.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #3 (permalink)  
Old 01-11-06, 11:55
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
log full

if table is empty you could alter the table not logged initially and load/import the data.
with import always specify commitcount xxx and with load specify savecount xxx and if file is still available also : nonrecoverable
there is no shrink command (this is for MS SQL..)
see command reference for detailed syntax..
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #4 (permalink)  
Old 01-11-06, 15:55
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
Thanks for the replies.......These 2 tables we really did not need because they were some perf monitoring tables that came from the client but I should include the 'Commit' in the files/scripts and also increase the transaction log size from default to a bigger value.

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