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 > revert from 16K to 4K in DB2?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-01-09, 18:23
ankur.dogra ankur.dogra is offline
Registered User
 
Join Date: Jul 2009
Posts: 1
revert from 16K to 4K in DB2?

Hi,

I had a table in a 4K tablespace in DB2 v8.2 on AIX. The trouble was as the size of the table was growing rapidly, hence i had to shift it to a 16K tablespace. Now, i have migrated to DB2 9.1.7 on AIX and have enabled large tablespace in 4K and 16K. And to utilize large tablespace benefits, I have also done a reorg.

As the application recommends that the table should remain in a 4K tablespace (otherwise u fetching will be more) I want to migrate it back to a 4K tablespace. The trouble is while creating the table through DDL, editors replies:-
SQL0670N The row length of the table exceeded a limit of "4005" bytes.

There has been no changes (no new column added or subtracted or altered since old migration). How to get around this? Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 07-01-09, 19:11
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,195
Why don't you humor us and post the exact DDL you submitted.
__________________
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 07-02-09, 02:33
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Wow, this is a difficult question. Let me recap:
- you use 16K pagesize now and you want to convert to a smaller size
- the row does not fit into a 4K page
- IBM default pagesize is 8K now

No sorry, serious now
Did you try to use separate tablespaces for "normal" data and LOB's? Like this:
Code:
create table whatever
 (col_this ...
  col_that ...
 )    in your_04K_tablespace
LONG  in your_16K_tablespace ;
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