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 > alternate option to "not logged initially"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-09, 01:31
sanjai sanjai is offline
Registered User
 
Join Date: Jan 2007
Posts: 33
alternate option to "not logged initially"

hi all,

i am altering a table with "not logged initially" option to avoid logging while doing massive update (to avoid transaction log full). but sometimes i am getting an error
SQL1477N For table "RPM.TRANS" an object "269" in table space "4"
cannot be accessed. SQLSTATE=55019

as per the above msg, i have to drop and recreate the table.

is there any other way to run dml without logging

pls advice

regards
sanjai
Reply With Quote
  #2 (permalink)  
Old 08-06-09, 11:43
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
See if this helps you:
update 10 million records
Reply With Quote
  #3 (permalink)  
Old 08-06-09, 14:46
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
Quote:
Originally Posted by sanjai
hi all,

i am altering a table with "not logged initially" option to avoid logging while doing massive update (to avoid transaction log full). but sometimes i am getting an error
SQL1477N For table "RPM.TRANS" an object "269" in table space "4"
cannot be accessed. SQLSTATE=55019

as per the above msg, i have to drop and recreate the table.

is there any other way to run dml without logging

pls advice

regards
sanjai
could you display commands you used. I just used this option before creating indexes on a huge table and it reduced the time by 30%.
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
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