db2 v9.5 /aix 6.1
I am moving a table to another TS. so I create another table in new TS and load it
with COPY YES to /load_dir option. When I check the original (source) table size it is only 19MB:
select substr(t.tabschema,1,10)||’.’||substr(T.tabname,1, 20) as table
,char(date(T.stats_time)) as statsdate ,char(time(T.stats_time)) as statstime
,T.CARD as rows_per_tbl, decimal(float(T.npages)/(1024/(TS.pagesize/1024)),9,2) as used_mb
,decimal(float(T.fpages)/(1024/(TS.pagesize/1024)),9,2) as allocated_mb
from SYSCAT.TABLES T ,SYSCAT.TABLESPACES TS
where T.tbspace=TS.tbspace and T.tabname=’BV_AAA’ and T.TYPE=’T’”
TABLE STATSDATE STATSTIME ROWS_PER_TBL USED_MB ALLOCATED_MB
----------- ---------- --------- ------------ -------- ------------
DBA.BV_AAA 04/19/2010 15:28:01 135689 19.84 20.00
but load created a huge backup file for some reason (25GB):
25924329472 Apr 19 15:27 db_name.4.db2v9i1.NODE0000.CATN0000.20100419152500 .001
Is anything wrong here? It's not a problem with this table, but when I try
to do it with another table with 25 million rows in it, I run out of disk space because
LOAD...COPY YES creates a huge backup file (>630GB). Database has archival logging so
I have to use COPY YES option.
Thanks in advance