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 > Increase space in tablespace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-07, 21:54
sgmane sgmane is offline
Registered User
 
Join Date: Jul 2005
Posts: 19
Increase space in tablespace

Hi,

DB: DB2 V9
OS: Unix [AIX, Solaris, Win NT]

Can anyone please let me know the following?

Need to increase the space in the tablespace.
To identify the current space

db2 list tablespaces show detail
db2 list tablespace for containers <number> show detail

shall list the free/ and used pages.

to increase
db2 alter tablespace <tablespace name> extend (file 'file.dbf' <no. of pages>)

How do i identify the size to be increased? I mean say there are free pages of 6MB. How do i identify how much size has to be increased based on the rows to be inserted? [say if i want to insert 100,000 rows]

And also to know what parameters need to be considered before increasing the tablespace?

Can anyone give me a lead?
thanks for your input.
-Mane SG
Reply With Quote
  #2 (permalink)  
Old 01-18-07, 03:46
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
size

It is difficult to say, how much a tablespace will increase or need.
You should monitor the growth of these tables over time and monitor usage %
make an estimate and see how much free space you can effort.
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
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