We are implementing some system to our customers which uses DB2 database and we hadn’t have problem with table spaces free pages before! But now in implementation phase I can see low level of database free pages. We had 56304 pages and now we have only 288 free. Can some one tell me does it can be harmful and dangerous? How to solve it? I tried with making some attributes of tables to decrease their size (on example ALN from 250 I set it to 100) but instead of growing my table spaces got smaller? How to solve this? I will be very thankful
Share
Yes, if you run out of free pages, then DB2 will not be able to write any more data to the table.
There are a few ways you can increase the number of free pages. You need to know how many file containers are assigned to the tablespace and how many free and used pages you have using the following query (or
db2 list tablespaces show detailfrom the command line):You can then calculate the number of pages to increase using the formula:
You’ll then take the result and use
ALTER TABLESPACEto extend the tablespace:Additionally, you may be able to
REORGthe table, which may free up some unused pages.