Unix Technical Forum

disconnect all

This is a discussion on disconnect all within the DB2 forums, part of the Database Server Software category; --> If i do "db2 disconnect all" after an application finishes, does it mean that any application that connects after ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-04-2008, 06:23 AM
TMAG
 
Posts: n/a
Default disconnect all

If i do "db2 disconnect all" after an application finishes, does it
mean that any application that connects after this will find the buffer
pool "cold"? Or the pages accessed by last application will be still in
buffer pool? Apparently when I do "db2 disconnect all" at the end, the
windows task manager shows that all bufferpool memory has been deallocated.

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-06-2008, 02:04 PM
Dave Hughes
 
Posts: n/a
Default Re: disconnect all

TMAG wrote:

> If i do "db2 disconnect all" after an application finishes, does it
> mean that any application that connects after this will find the
> buffer pool "cold"? Or the pages accessed by last application will
> be still in buffer pool? Apparently when I do "db2 disconnect all" at
> the end, the windows task manager shows that all bufferpool memory
> has been deallocated.


If your connection was the only one to the database, then when it
disconnects the database will become "inactive" - in other words, the
buffer pools are indeed deallocated.

If you wish to keep the database "active" and the bufferpools hot, use
the "ACTIVATE DATABASE dbname" command which effectively tells DB2 to
maintain a persistent connection to the database itself.

Naturally, the "DEACTIVATE DATABASE dbname" command can be used to shut
down this "extra" connection, which you'll need to do whenever you want
to take the database offline for whatever reason (configuration change,
offline backup, etc. etc.)


Cheers,

Dave.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:40 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com