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 > Log files in db2 8

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-12-07, 00:58
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
Log files in db2 8

Db2 8.2 on windows 2000

We have a hsitory database that is frquently accessed by a single application. Each time the application connect/disconnect DB2 close log file and opens a new one. We end up getting large number of 12K size log files. Is there a way to make DB2 close log files only when the log file size is closer to allocated size for the logfile.

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 02-12-07, 01:32
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Issue the following command, you will not get new log files each time the number of connections goes from 0 to 1:

db2 activate db <db-name>

This also will make your first connection faster, since when the database is activated (connections goes from 0 to 1 or explict activation), the buffer pools and some other database memory are dynamically allocated (which takes a little bit of time).
__________________
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 02-12-07, 01:50
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
thanks very much
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