We are trying to bulk insert ~200 million records as initial load into a DB2 database.
During the process we get the following error:
SQLCODE=-289, SQLSTATE=57011, SQLERRMC=TEST_IS
Does it mean we ran out of disk space?
How to add additional space?
Please find the following details of the tablespace:
- it is a Database-managed space.
- type is
large
table space, EXTENTSIZE
is 32PAGESIZE
is 32768
I am not a DBA and not able to understand the error.
Best Answer
This probably means you ran out of space within the DMS tablespace. DMS tablespaces pre-allocate their storage. They can be set to auto-grow when full but perhaps this one isn't, or it's hit the maximum size specified.
For more information on the particular error you can use the "db2 ?" facility. In this case, the error page is particularly verbose (there are many sub-categories) so here's a sample of the output:
As it states, the most likely cause is the containers for the tablespace are full, so add some new containers (or extend the existing ones) with
ALTER TABLESPACE
(there's several examples at the bottom). You will likely need to ask your DBA to do this (as the manual page states, this requires SYSADM or SYSCTRL privilege).