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 > questions-Archived Logs?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-23-06, 14:39
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
questions-Archived Logs?

Hi again

I seem to have multiple questions on logs, and the list keeps getting bigger day by day

1. If I am using INCLUDE LOGS with the online backup that I take every night, do i still need to archive my logs for recovery purposes? How does the INCLUDE LOGS option works??

2. We are using TSM to store the backup images and archived logs. IF the LOGARCHMETH1 is set to TSM, do I still need to set up USEREXIT to YES?? IF USEREXIT is not set up , are the ARCHIVE.log & USEREXIT.err still created and if yes, where are they located.

ENV: DB2 UDB v8.1 FP 7, AIX

here is a snapshot of few database configuration parameters.

Log retain for recovery status = NO
User exit for logging status = YES

Log buffer size (4KB) (LOGBUFSZ) = 128
Log file size (4KB) (LOGFILSIZ) = 2000
Number of primary log files (LOGPRIMARY) = 30
Number of secondary log files (LOGSECOND) = 20
Changed path to log files NEWLOGPATH) =
Path to log files = /prod1/sms/log/xyz/NODE0000/
Overflow log path (OVERFLOWLOGPATH) =
Mirror log path (MIRRORLOGPATH) =
First active log file = S0000359.LOG
Block log on disk full (BLK_LOG_DSK_FUL) = NO

Log retain for recovery enabled (LOGRETAIN) = OFF
User exit for logging enabled (USEREXIT) = OFF

First log archive method (LOGARCHMETH1) = TSM
Options for logarchmeth1 (LOGARCHOPT1) =
Second log archive method (LOGARCHMETH2) = OFF
Options for logarchmeth2 (LOGARCHOPT2) =

Thanks for all the help that I have getting from this forum I'll appreciate if somebody could recommend me some article on logs.

Anks
Reply With Quote
  #2 (permalink)  
Old 05-23-06, 15:48
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I can answer question #1.

You can restore the online backup that has logs included, but you cannot roll forward the database to the current time unless you have the logs created after the backup (you can only roll it forward to the backup time). The included logs are only those logs that were active during the online backup.

Sorry, I am not knowledgable about TSM.
__________________
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 05-23-06, 16:37
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
If you update the userexit or logretain configuration parameters logarchmeth1 will automatically be updated and vice versa. However, if you are using either userexit or logretain, logarchmeth2 must be set to OFF. IF the LOGARCHMETH1 is set to TSM, you DO NOT need to set up USEREXIT to YES. ARCHIVE.log & USEREXIT.err are located in DSMI_LOG(environment variable) directory.
__________________
mota
Reply With Quote
  #4 (permalink)  
Old 05-23-06, 17:19
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
Thanks again for solving my queries.

dbamota-

I did looked at the environment variables and I looked at the DSMI_LOG directory but I could not find the archive.log and userexit.err though I did find few other files like:
backup.err
topas.err
tsm-err.log

Do i need to set something so that I can see these files? or if archiving is happening these files are set up automatically?

I really would like to see them, maybe it can give me clue about the log archiving problems that we are having lately.

Thanks again!!

Anks
Reply With Quote
  #5 (permalink)  
Old 05-24-06, 15:05
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Tivoli administrator has to setup a NODE on Tivoliserver. On the clientside you have to setup the dsm.opt, dsm.sys elements properly; See the redbook on Backing up db2 using Tivoli. You have to setup the password and after that you have to restart your instance so it takes the DSMI ENV. parameters.
Each time a log is archived, you see an entry in ARCHIVE.LOG. You can force a log switch by "db2 ARCHIVE LOG for db xyz" where xyz is your database
__________________
mota
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