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 tablespace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-18-08, 07:15
tis5behi tis5behi is offline
Registered User
 
Join Date: Sep 2008
Posts: 1
Increase tablespace

Hello everyone,

I try to increase the tablespace with the following to 8K:

alter tablespace USERSPACE1 RESIZE ( ALL 8192 )

...but I then get this error message:

SQL20170N There is not enough space in the table space "USERSPACE1" for the
specified action. SQLSTATE=57059

Thats confusing to me, because having not enough space is what I know, therefore I try to increase it. So what do I have to do for getting more space?
Reply With Quote
  #2 (permalink)  
Old 09-18-08, 07:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
What does the command "list tablespaces show detail" show for this tablespace?
Reply With Quote
  #3 (permalink)  
Old 09-18-08, 08:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
USERSPACE1 may be a SMS tabkepace (espcially if created in version 8), in which case you cannot specify the size. An SMS tablespace increases and shrinks automatically up to the amount of space on the path where the container(s) is located.
__________________
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
  #4 (permalink)  
Old 09-19-08, 06:15
Shubhrojyoti Shubhrojyoti is offline
Registered User
 
Join Date: Sep 2008
Posts: 6
Smile This may help

db2 "? SQL20170N"


SQL20170N There is not enough space in the table space
"<tablespace-name>" for the specified action. Reason
code = "<reason-code>".

Explanation:

Space is being removed from a tablespace using one or more of
the DROP, REDUCE, and RESIZE container actions resulting in one
of the following scenarios:


1 The amount of space being removed is greater than the amount
of space above the high-water mark.

2 The amount of space being removed would result in the
tablespace having less then the required 5 extents.



User Response:


1 Use the snapshot monitor to find the number of useable pages
in the tablespace and the tablespace high-water mark. The
difference between these values is the maximum number of pages
that can be removed.

2 Use the snapshot monitor to find the number of useable pages
in the tablespace and the tablespace extentsize. The number of
useable extents in the tablespace is equal to the useable pages
divided by the extentsize. There must be at least 5 extents worth
of useable pages in the tablespace.



sqlcode : -20170

sqlstate : 57059
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