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 > Infinite Logging

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-26-09, 08:23
anirbanpal anirbanpal is offline
Registered User
 
Join Date: Nov 2009
Posts: 6
Infinite Logging

Hi,
I know that if we set db cfg parameter LOGSECOND=-1,it sets up the db for Infinite logging. But what is the practical use of this infinite logging feature? In which kind of environment will I be benifitting with this feature?

Thanks,
Anirban.
Reply With Quote
  #2 (permalink)  
Old 11-26-09, 09:20
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Log capacity. When you configure the number primary & secondary logfiles you also limit your log (and transaction) capacity. So when you've got an update on a large table without a where clause it could hit the log limits after a few hours and do a rollback (spending that same time again).
When you have infinite logging, you are limited by disk-space only (for the logs).
Reply With Quote
  #3 (permalink)  
Old 11-26-09, 16:00
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Infinite logging is the devil's work. Any momentary advantages will be seriously regretted in the future.
__________________
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
  #4 (permalink)  
Old 11-26-09, 21:40
Javaharlal Javaharlal is offline
Registered User
 
Join Date: Nov 2009
Posts: 5
Quote:
Originally Posted by Marcus_A View Post
Infinite logging is the devil's work. Any momentary advantages will be seriously regretted in the future.
Yes - a truly religious experience ..... what a schmuck!
Reply With Quote
  #5 (permalink)  
Old 11-27-09, 00:00
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
@Javaharlal : i know who has created this fake id ......
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #6 (permalink)  
Old 11-27-09, 00:43
anirbanpal anirbanpal is offline
Registered User
 
Join Date: Nov 2009
Posts: 6
@dr_te_z

Thanks for the reply. But from practical perspective is this something which we do in a transient state, say when we want to delete/update a large table which might cause huge logging? Or are there some systems where we permanently enable this infinite logging ?

Thanks,
Anirban.
Reply With Quote
  #7 (permalink)  
Old 11-27-09, 09:03
Javaharlal Javaharlal is offline
Registered User
 
Join Date: Nov 2009
Posts: 5
Quote:
Originally Posted by rahul_s80 View Post
@Javaharlal : i know who has created this fake id ......
That's nice! But the real question is - do you know anything about infinite logging?

P.S. I know who assassinated Gandhi! Do you?
Reply With Quote
  #8 (permalink)  
Old 11-27-09, 09:20
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
Quote:
Originally Posted by Javaharlal View Post
P.S. I know who assassinated Gandhi! Do you?
? Stalin Died naturally or Rat Poison did the trick ?
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #9 (permalink)  
Old 11-27-09, 16:40
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by anirbanpal View Post
say when we want to delete/update a large table which might cause huge logging? Or are there some systems where we permanently enable this infinite logging ?
What do you want? When, due to an application error, the system starts to modify far too much data, the "no more log space" could save you. But when you are running some kind of upgrade script in the weekend, that same message will drive you crazy. Some else cannot decide for you.
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