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 > reorg fails

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-04, 15:51
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
reorg fails

I keep getting errrors when I attempt to reorg tables in DB2 UDB 7.2 with FP6 on AIX 5.2L:

SQL2216N SQL error "-291" occurred while reorganizing a database table.

how can I fix this?

db2 "REORG TABLE db2inst1.mytable";

The table is out of paging space. I need to cleanup the table via the reorg to reclaim wasted page space. When I try to use a tempspace I get the same error. Thanks

Scott
Reply With Quote
  #2 (permalink)  
Old 01-21-04, 00:43
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Your post

Hi Scott.

I found your same query when I searched the forum and there was some suggestion by Sathyaram can you please try the same again.

http://dbforums.com/arch/8/2003/5/786031

Does it help?

Nitin.
__________________
HTH

Nitin

Ask the experienced rather than the learned
Reply With Quote
  #3 (permalink)  
Old 01-21-04, 10:30
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
some possible options

thanks. checked with db2 support

1. change buffpage settings in DB2
2. drop index before reorg, re-org table and recreate index
3. create new tablespace and temp table to hold copy of table
that is being reorg and out of space. During the reorganization
the table or table being reorganized must have enough free space
to hold a copy of the table
Reply With Quote
  #4 (permalink)  
Old 01-21-04, 10:42
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: some possible options

Why is that IBM recommended to change buffpage ...

In your syscat.bufferpools do you have NPAGES as -1 ...

If NPAGES is some positive value, then you will have to use
ALTER BUFFERPOOL ... SIZE to change the size of the bufferpool

HTH

Sathyaram

Quote:
Originally posted by mixxalot
thanks. checked with db2 support

1. change buffpage settings in DB2
2. drop index before reorg, re-org table and recreate index
3. create new tablespace and temp table to hold copy of table
that is being reorg and out of space. During the reorganization
the table or table being reorganized must have enough free space
to hold a copy of the table
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 01-21-04, 11:18
cchattoraj cchattoraj is offline
Registered User
 
Join Date: Mar 2003
Posts: 343
3. create new tablespace and temp table to hold copy of table
that is being reorg and out of space. During the reorganization
the table or table being reorganized must have enough free space
to hold a copy of the table

---Do both table(dms)/tablespace(sms) and temp table require space for the reorganisation? So if a table size is n units wil we need 3n units to reorg it?
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