try import replace from empty file
"Robert Kersten" <ke******@cs.tu-berlin.de> wrote in message
news:ci**********@news.cs.tu-berlin.de...
Hi everyone.
I need to completely remove all entries in a number of tables.
Dropping the tables works fine - my only problem is, that in production
environment I don't have the right to drop the tables .. ;)
So I try to delete all entries - but experience that subsequent access to
the database (a lot of different selects and inserts invoked via java) is
much slower than it would be on dropped and new created tables. (Just as
if they weren't empty.)
My SQL looks like that:
delete from mytable;
commit;
reorg table mytable;
commit;
runstats on table myTable on all columns;
commit;
Thereafter the tables _are_ empty, but my DB2 data directory still takes
a lot more disk space than it would with newly created tables ...
Am I missing something?
Is there something concerning the indexes I should do after deletion?
I'm working on DB2 8 (8.1.0.36), but DB2 7.2 seems to behave the same way.
Thanks in advance for any hints, Robert Kersten.