Question : How to allocate new pages to tempspace in db2

Dear experts,

My table has billion of records. When Iam loading the table with generated option as my table has generated data types my load was failed with the below error.

Db2 load from /export/home/db2inst1/tab1.ixf of ixf modified by generatedoverride insert into tab1 nonrecoverable.

SQL0289N  Unable to allocate new pages in table space "TEMPSPACE1".
SQLSTATE=57011

Can any one of you please let me know how to load the data into tables that has billion of records.I have 15 tables of same kind.

Look forward to receive  your response.

Answer : How to allocate new pages to tempspace in db2

Hi part,

It could be one of two things, depending on how your disk space is managed for DB2.

If you're using System Managed Space (most likely) a disk drive is full.  You'll need to get the system administrator to allocate more space (if it's on a SAN) or move TEMPSPACE1 to a larger device.

If it's DMS, you can alter the tablespace to make it bigger.

  db2 alter tablespace <tablespace_name> extend (all <num_pages>)


You can check the space management with:  

  db2 list tablespaces show detail



Good Luck,
Kent
Random Solutions  
 
programming4us programming4us