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 > Opinions on expanding IBMDEFAULTBP pagesize

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-25-11, 19:05
GregMalick GregMalick is offline
Registered User
 
Join Date: May 2010
Posts: 2
Opinions on expanding IBMDEFAULTBP pagesize

Aloha,

We just encountered a problem in using JPA to display some table information with a varchar(6000) field. Sorting causes the use of a TEMP storage table and IBMDEFAULTBP has the default 4096 pagesize. Obviously this causes a problem (SQL1585N)...

I'm considering increasing the size to 8K but after Googling, I'm a little concerned that there may be upgrade issues with DB2 in the future.
https://www-304.ibm.com/support/docv...id=swg1IO12416

So I'm wondering what opinions you DBA's have on this.

Is it possible to set up an alternate buffer pool and somehow have that used as the TEMP storage Table for sorts?
Or should I just take the risk and increase the IBMDEFAULTBP pagesize?


DB2 v9.7 on Linux-64
Reply With Quote
  #2 (permalink)  
Old 05-25-11, 19:31
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I always create a 32K bufferpool (of small size) and a 32K System Temporary Tablespace in every database. Shouldn't matter what default page size is if you do that. It is OK to leave the default 4K TEMPSPACE1 as it was created.
__________________
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-25-11, 20:45
GregMalick GregMalick is offline
Registered User
 
Join Date: May 2010
Posts: 2
Thanks!

Aloha and thanks Marcus,

That's was a very reasonable suggestion, so that's what I did.
Works like a charm!

Reply With Quote
  #4 (permalink)  
Old 05-25-11, 22:41
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by GregMalick View Post
We just encountered a problem in using JPA to display some table information with a varchar(6000) field. Sorting causes the use of a TEMP storage table and IBMDEFAULTBP has the default 4096 pagesize. Obviously this causes a problem (SQL1585N)...

I'm considering increasing the size to 8K
Clearly, since you have a table with a 6K column, you must have a tablespace with the page size larger than 4K to contain it and, subsequently, a bufferpool with the same page size.

The only thing that you are missing is a system temporary tablespace with that page size. If you follow Marcus' approach of 32K you'll need also a bufferpool with that page size.

Also, you can't change a bufferpool page size; you can only drop and re-create the bufferpool, so "increasing the size to 8K" won't work.
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