hi nicholas,
unfortunately i am not a DBA and my knowledge of oracle are just minimun necessary to perform basic action.
I cannot give you any script that will solve this issue becaue this could create more bigger issue for you and lead to a DLP not working anymore.
I could just give you some hint to do this and let you decide when and how to do it:
- you main issue is with lob segment in LOB_TABLESPACE. This segmlent are mainly uised by table MessageLob and messagecomponentlob. YOu may have full list of column and from which table are stored in this tablespace with following request
select column_name, table_name from user_lobs where tablespace_name='LOB_TABLESPACE'
-This request will give you real size used by blob fields :
SELECT NVL((SUM(DBMS_LOB.GETLENGTH(<replacebyblobfield>))),0) AS BYTES FROM <replace by table name>;
- you may try to shrink your table with
ALTER TABLE <table name> SHRINK SPACE;
unfortunately i cannot garantee this will solve your issue and not provide you any support on this (there is many oracle forum on internet with many different solution).
enforce alarm about tablespace size are also wrong on estimating real space available. But as stated previously oracle may be able to reuse free space even if you dont see it as free so if you monitor
regularly tablespace size you shoul dnot see it increased before few month as you have deleted many incident.
Regards.