MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Finding Type of table space related to a table in DB2

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Nila
Beginner


Joined: 26 Dec 2002
Posts: 20
Topics: 8
Location: Chennai, India

PostPosted: Tue Apr 08, 2003 5:59 am    Post subject: Finding Type of table space related to a table in DB2 Reply with quote

Hi
How to find the type of table space related to a table?
And what is the maximum size of a table?
_________________
Cheers Nila..
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Apr 08, 2003 6:36 am    Post subject: Reply with quote

Nila,

Code:

SELECT TYPE
  FROM SYSIBM.SYSTABLESPACE
  WHERE NAME = 'YOUR TBSPACE NAME'
  ;


If you don't know the tablespace name but have only the table name then use the following
query

Code:

SELECT TYPE
  FROM SYSIBM.SYSTABLESPACE
  WHERE NAME = (SELECT TSNAME
                        FROM SYSIBM.SYSTABLES
                        WHERE NAME = 'YOUR TABLE NAME')
  ;


Check this link for explanation of the type of tablespace.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNSQH11/D.75?DT=20010718164132

The Largest table or table space is 16 terabytes with a max of 750 columns.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nila
Beginner


Joined: 26 Dec 2002
Posts: 20
Topics: 8
Location: Chennai, India

PostPosted: Tue Apr 08, 2003 7:47 am    Post subject: Reply with quote

Hi kolusu

Thank you so much
_________________
Cheers Nila..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group