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 > Create Table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-04-05, 01:16
AnilKale AnilKale is offline
Registered User
 
Join Date: Feb 2005
Posts: 118
Create Table

Hi All !

Do I have to do something extra to use
CREATE TABLE with the NOT LOGGED INITIALLY clause ?
I ask this because I see the transaction log full messages in my log file.
I did not expect to see the transaction log full message if I am doing multiple inserts in a single unit of work.
Any thoughts as to what could be going wrong ?

Anil
Reply With Quote
  #2 (permalink)  
Old 03-04-05, 01:27
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Not sure what interface you are using, but you need to shut off auto-commit and only commit explicitly when all the inserts are done.

If you are using the CLI, then the +c option shuts off auto-commit. See the Command Reference manual for details on CLI options. Don't forget to explicitly commit after you do all the inserts.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 03-04-05, 02:22
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Thatz correct Marcus.
In our project we used to get similar problems while inserting (importing ) thousands of records together. We used very frequent commit statement after every 5000 rows and got the problem fixed.

Increasing the "Logprimary" and "Logsecondary" configuration parameter will fix the problem? You can try this too.

Thanks,
Jayanta Datta
Xansa India
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