Unix Technical Forum

question about bufferpool and tablespace

This is a discussion on question about bufferpool and tablespace within the DB2 forums, part of the Database Server Software category; --> Hi, I try to create a tablespace like this: create tablespace tb01 pagesize 16k managed by database using ( ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 10:59 AM
Ouizzze
 
Posts: n/a
Default question about bufferpool and tablespace

Hi,

I try to create a tablespace like this:

create tablespace tb01 pagesize 16k managed by database
using
(
FILE 'c:\ct\0\tb01.dbf' 300,
FILE 'c:\ct\1\tb01.dbf' 300

) extentsize 16 prefetchsize 8
bufferpool buff16;

before I have already creating a bufferpool like this:
create bufferpool buff16 size 20 pagesize 16k
alter bufferpool buff16 extended storage

and I have this error message, when I try to create the tablespace tb01:
SQL0647N: the bufferpool "buff16" is not active

How can I activate a bufferpool?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 10:59 AM
Rhino
 
Posts: n/a
Default Re: question about bufferpool and tablespace

Stop and restart the database; after that, your bufferpool should be active.

Rhino

"Ouizzze" <ouizzze@voila.fr> wrote in message
news:ca94e4e7.0307170730.2b5658a0@posting.google.c om...
> Hi,
>
> I try to create a tablespace like this:
>
> create tablespace tb01 pagesize 16k managed by database
> using
> (
> FILE 'c:\ct\0\tb01.dbf' 300,
> FILE 'c:\ct\1\tb01.dbf' 300
>
> ) extentsize 16 prefetchsize 8
> bufferpool buff16;
>
> before I have already creating a bufferpool like this:
> create bufferpool buff16 size 20 pagesize 16k
> alter bufferpool buff16 extended storage
>
> and I have this error message, when I try to create the tablespace tb01:
> SQL0647N: the bufferpool "buff16" is not active
>
> How can I activate a bufferpool?
> Thanks



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 10:59 AM
Michael Bhola
 
Posts: n/a
Default Re: question about bufferpool and tablespace

deactivate/activate the database

"Ouizzze" <ouizzze@voila.fr> wrote in message
news:ca94e4e7.0307170730.2b5658a0@posting.google.c om...
> Hi,
>
> I try to create a tablespace like this:
>
> create tablespace tb01 pagesize 16k managed by database
> using
> (
> FILE 'c:\ct\0\tb01.dbf' 300,
> FILE 'c:\ct\1\tb01.dbf' 300
>
> ) extentsize 16 prefetchsize 8
> bufferpool buff16;
>
> before I have already creating a bufferpool like this:
> create bufferpool buff16 size 20 pagesize 16k
> alter bufferpool buff16 extended storage
>
> and I have this error message, when I try to create the tablespace tb01:
> SQL0647N: the bufferpool "buff16" is not active
>
> How can I activate a bufferpool?
> Thanks



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 10:59 AM
Mark A
 
Posts: n/a
Default Re: question about bufferpool and tablespace

"Ouizzze" <ouizzze@voila.fr> wrote in message
news:ca94e4e7.0307170730.2b5658a0@posting.google.c om...
> Hi,
>
> I try to create a tablespace like this:
>
> create tablespace tb01 pagesize 16k managed by database
> using
> (
> FILE 'c:\ct\0\tb01.dbf' 300,
> FILE 'c:\ct\1\tb01.dbf' 300
>
> ) extentsize 16 prefetchsize 8
> bufferpool buff16;
>
> before I have already creating a bufferpool like this:
> create bufferpool buff16 size 20 pagesize 16k
> alter bufferpool buff16 extended storage
>
> and I have this error message, when I try to create the tablespace tb01:
> SQL0647N: the bufferpool "buff16" is not active
>
> How can I activate a bufferpool?
> Thanks


In addition to what the others have said, do you know that the Buffer Pool
is defined in number of "pages," so that your bufferpool is 320 KB (about
1/3 of a MB). This is "probably" way too small.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 11:00 AM
Ouizzze
 
Posts: n/a
Default Re: question about bufferpool and tablespace

Thank's, it's ok.
I have another question. How can you determine the size of a bufferpool?
In this exemple, it's 20*16=320k. Why it seems too small?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 11:00 AM
Mark A
 
Posts: n/a
Default Re: question about bufferpool and tablespace

"Ouizzze" <ouizzze@voila.fr> wrote in message
news:ca94e4e7.0307180358.751f519d@posting.google.c om...
> Thank's, it's ok.
> I have another question. How can you determine the size of a bufferpool?
> In this exemple, it's 20*16=320k. Why it seems too small?


Bufferpool size is one of the most important performance parameters in DB2.
It determines how much memory DB2 uses for data and index pages. DB2 uses
bufferpools to avoid synchronous I/O to disk, sort of like a sophisticated
disk cache.

I suspect that the 16K bufferpool is not the only one active. However, the
sum of all buffer pools active at any one time should probably utilize at
least one half of the total system memory on the machine. The amount
assigned to DB2 bufferpools depends on what other activity the machine
performs and the memory available. Any time a database connection is made,
all the bufferpools for that database are active. The default size of the 4K
default bufferpool is probably also too low.

Mark
InfoStar Solutions, LLC


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-26-2008, 11:01 AM
Powell
 
Posts: n/a
Default Re: question about bufferpool and tablespace

Courious as to why you pick prefetchsize 8 with an extentsize of 16 ?
Prefetch should be minimum 1:1 with extentsize, and possible scaled to
a multiple of number of physical disk containers.

Powell.


ouizzze@voila.fr (Ouizzze) wrote in message news:<ca94e4e7.0307170730.2b5658a0@posting.google. com>...
> Hi,
>
> I try to create a tablespace like this:
>
> create tablespace tb01 pagesize 16k managed by database
> using
> (
> FILE 'c:\ct\0\tb01.dbf' 300,
> FILE 'c:\ct\1\tb01.dbf' 300
>
> ) extentsize 16 prefetchsize 8
> bufferpool buff16;
>
> before I have already creating a bufferpool like this:
> create bufferpool buff16 size 20 pagesize 16k
> alter bufferpool buff16 extended storage
>
> and I have this error message, when I try to create the tablespace tb01:
> SQL0647N: the bufferpool "buff16" is not active
>
> How can I activate a bufferpool?
> Thanks

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 09:23 PM.


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