on 06-29-2015 10:54 AM
Hi,
We are facing problem in CRM production.SMW3_BDOC3 table size is 215GB and it is growing very fast..
We have scheduled reorg report to delete the entries in SMW3_BDOC3 table. Now entries got deleted but size of the table remains same 215GB.
Please suggest how to compress single table in DB2.
we are using windows2008 OS. and database:DB6.,release:09.07.0003
Regards,
Harish.
Please try to below after re-org to reduce the HWM.
ALTER TABLESPACE <tablespace_name> LOWER HIGH WATER MARK
ALTER TABLESPACE <tablespace_name> REDUCE MAX
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harish,
You can first try to REORG table the using DB13 --> REORG and RUNSTATS for Set of Tables, in the window provide the table and choose ONLINE, check the table size after compleltion of the program.
You can also try to REORG the table from OS level as below..
Reorg Table:
$ DB2 ALTER TABLE <schema_name>.<table_name> ACTIVATE NOT LOGGED INITIALLY ---> to avoid logging
$ DB2 REORG TABLE <schema_name>.<table_name>
$ DB2 COMMIT
Reorg index:
$ DB2 REORG INDEXES ALL FOR TABLE <schema_name>.<table_name>
After reorganization, it is required to re-generate statistics for both the table and the indexes
$ DB2 RUNSTATS ON TABLE <schema_name>.<table_name> FOR INDEXES ALL
Can go through the below link...
Regards,
Prithviraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prithviraj,
Thanks for your suggestion.
In QAS system SMW3_BDOC3 table size is 98GB... at os level disk free space 30GB.
In PRD system SMW3_BDOC3 table size is 215GB .. at os level disk free space 85GB.
We have reduced SMW3_BDOC3 Table entries in both the systems by using reports SMO6_REORG2 and SMO8_REMOVE_BDOC_INCONSISTENCY as suggested by SAP.
But no change in table space level.
In QAS system i tried using db13-->compress on --->run reorg to build dictionary---- But at os level we have only 30GB space.with in 2 hours the space get filled-up, reorg job has taken 30GB and system got hang. when i restarted the server it has released 30GB. ... but Reorg table job got cancelled and table size had not compressed.
Regards,
Harish.
Hi,
Why don't you try to reorg OFFLINE for the given table in QAS first. For this you can create a TEMP tablespace in some other file sytem and once REORG is completed you can delete the tablespace.
You can follow the below mentioned steps for this...
Ensure you have DB backup taken prior to the activity.
Once you complete the activity you should have table size decreased.
Regards,
Prithviraj.
Hi Prithviraj,
I have done RE ORG for SMW3_BDOC* table by useing DB13 reorg ONLINE option. Table size has been decreased for 40GB.
Before Reorg TB size |||| After Regor TB size
SMW_BDOC 40GB 10GB
SMW_BDOCQ 20 GB 10 GB
But in OS level Disk size remains same as 85 GB.. please guide me how to release 40 GB at OS level.
Thanks&Regards,
Harish
Hi Harish,
You may need to reduce the highwater mark. See Note:
486559 - DB6: Reducing the high-water mark (HWM)
Regards,
Hugo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Harish,
please check the DBA guide for table compression
https://websmp205.sap-ag.de/~sapidb/011000358700001449002009E/DB2AdminGuide10_5_GMTfinal.pdf
regards,
Javier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.