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 > How to manually switch active logs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-07, 03:00
sansaniwal sansaniwal is offline
Registered User
 
Join Date: Feb 2007
Posts: 6
Question How to manually switch active logs

Hi all,

How can i manually switching my active log to next active log.Suppose my First active log file is on S0033915.LOG & i want to move it to S00339116.LOG. because i need backup of this log S0033915.LOG.

Thanks & Regards,
sansaniwal
Reply With Quote
  #2 (permalink)  
Old 02-20-07, 03:15
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
db2 archive log is a command that can be executed
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 02-20-07, 05:45
sansaniwal sansaniwal is offline
Registered User
 
Join Date: Feb 2007
Posts: 6
Thanks A Lot.
yes this command is manully switching active logs &
also for running this command there should not be any existing connection.so first run
db2 terminate
then
db2 archive log for database sample
db2 get db cfg for sample |findstr -i "log"
db2 archive log for database sample
db2 get db cfg for sample |findstr -i "log"
So every time active log increases.

Thanks & Regards,
Sansaniwal
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