Olaf Gschweng wrote:[color=blue]
> We're new into DB2 and have some problem with DB2 8.1 (?) on a Linux system.
>
> We load some big tables of a DB2 database from files every day. We do a
> "DELETE FROM table" for each table and then we load the data by something
> like that:[/color]
When you delete records, in most cases DB2 does not return empty pages
to the "free space" in the tablespace. This is done to enhance
performance, but the penalty is that it requires periodic maintenance,
especially if you're deleting large amounts of data.
You can use the REORG utility to ask DB2 to reclaim the unused space.
However, see below:
[color=blue]
> LOAD FROM "/pathto/artikel.data" OF DEL MODIFIED BY DATESISO CHARDEL0xbf
> SAVECOUNT 50000
> MESSAGES "/pathto/artikel.msg"
> INSERT INTO artikel;[/color]
If you're re-loading the entire table, try using the REPLACE INTO syntax
instead of doing a delete and then using LOAD ... INSERT INTO. MUCH
faster, and no space issues.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----