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 > list space free in tablespaces.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-11, 06:05
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 282
list space free in tablespaces.

Hi Gurus,

I am using DB2 9.5 on AIX 6.1 and i want to know in tablespaces what is the spaces free?

Thank you for advanced.
Reply With Quote
  #2 (permalink)  
Old 06-23-11, 06:32
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
db2 list tablespaces show detail
Reply With Quote
  #3 (permalink)  
Old 06-23-11, 06:41
georgipa georgipa is offline
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 282
Hi,

Thank you for you answer, when i execute db2 list tablespaces show detail, in free pages show me not applicable. ¿What mean this?

Páginas totales = 895
Páginas utilizables = 895
Páginas utilizadas = 895
Páginas libres = No aplicable

The objetive of this thread is to do a script for know the space free in all tablespaces of database.

greetings.
Reply With Quote
  #4 (permalink)  
Old 06-23-11, 07:51
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
System-managed tablespaces (SMS) do not preallocate space - they can grow as large as the filesystem allows, so "free space" really depends on how much space is available on disk. Use OS utilities (e.g. df) to obtain this information.

You could also use the administrative views SYSIBMADM.SNAPCONTAINER and SYSIBMADM.CONTAINER_UTILIZATION
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