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 > secondary logging

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-09, 08:38
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
Question secondary logging

What is the difference between MIRRORLOGPATH and LOGARCHMETH2? I know that both are used for secondary logging but then what was the use of having two different parameters for the same purpose. It has to have some difference then which I am not aware of.
Reply With Quote
  #2 (permalink)  
Old 02-23-09, 09:13
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
MIRRORLOGPATH is for primary logs and LOGARCHMETH2 is for archive logs.

Andy
Reply With Quote
  #3 (permalink)  
Old 02-23-09, 09:14
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
By primary, I mean active logs.

Andy
Reply With Quote
  #4 (permalink)  
Old 02-23-09, 23:40
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
thanks andy but i need more clarity on this
Reply With Quote
  #5 (permalink)  
Old 02-24-09, 01:08
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Quote:
Originally Posted by nittal
thanks andy but i need more clarity on this
First of all did you go through IBM Information Center for that
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #6 (permalink)  
Old 02-24-09, 03:32
thangaraju thangaraju is offline
Registered User
 
Join Date: Feb 2009
Posts: 5
Active log means which are current being used by the Database. As it is very critical for DB operation we used to have mirror in different disk. If one disk fails, the other will be used by DB. MIRRORLOGPATH is used to specify the mirror for active logs.

Log files are used in the circular fashion, if one log file is full then it will be archived to the location specified in the LOGARCHMETH1 and if this location fails then it will use the location specified in LOGARCHMETH2.

I hope it clarified
Reply With Quote
  #7 (permalink)  
Old 02-24-09, 08:11
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by thangaraju
Log files are used in the circular fashion, if one log file is full then it will be archived to the location specified in the LOGARCHMETH1 and if this location fails then it will use the location specified in LOGARCHMETH2.

I hope it clarified
This is not correct. Log files are used in a circular manner if archiving is NOT being performed. If archiving is being used then when an active log file is full and no longer needed it is archived and a new one is created. Also LOGARCHMETH1 and LOGARCHMETH2 are not used as indicated above. If both are turned on, then archiving goes to both locations. One does not have to fail before the other is used.

Andy
Reply With Quote
  #8 (permalink)  
Old 02-24-09, 08:15
thangaraju thangaraju is offline
Registered User
 
Join Date: Feb 2009
Posts: 5
Andy, Yes I was wrong in my reply. Sorry for the confusion.

Thanks for making things clear. failarchpath is used for failover archive path.

Last edited by thangaraju; 02-24-09 at 08:23.
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