Is there a way in DB2 to identify that a table is consuming how much of the total space allocated to the underlying table space.”
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question creates a false dichotomy because a tablespace may be created without allocating a limited amount of space to it. The limitation may rather be the drive or share that the tablespace is on. But if you know the space allocated to a tablespace or only need the percent of a tablespace’s current size that a table is using, then yes, there is a way to know.
will tell you how many pages a table is using.
Then at the command line:
LiST TABLESPACES SHOW DETAILwill tell you how many total pages are in the tablespace and the size of a page in bytes.
will give you the maximum size of the tablespace if it has one.