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 > Different page size table space in one database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-21-04, 06:03
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
Different page size table space in one database

When creating a table with 20K size in a database having 4K size pages, get the following error.

HTML Code:
begin quote
db2 "create table t(name varchar(20480))"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0286N A default table space could not be found with a page size of at
least "32768" that authorization ID "DB2INST1" is authorized to use.
SQLSTATE=42727
HTML Code:
end quote
Can I create a 32k page size tablespace and a corresponding buffer pool for this requirement? Does this have any impact on the performance of the database? What are the pros & cons of having different page size (4K, 8k, 32K) table spaces in a single database?

TIA.
Reply With Quote
  #2 (permalink)  
Old 05-21-04, 06:53
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Arrow Pagesize

DB2 cannot divide records between pages, thus if you
mant to create a varchar that big, you will have to create
a tablespace with a pagesize larger than the maximum recordsize
and put the table there.

With characters that long, you migth want to look into the
CLOB or long varchar data types.

HTH
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
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