Oracle 資料表空間異常增長過快解決方案

來源:互聯網
上載者:User

1.  首先用語句查詢容量大於1G的資料區段

select segment_name,sum(bytes)/1024/1024 from dba_segments group by segment_name having sum(bytes)/1024/1024>1000;

得到如下結果:

SYS_LOB0000136091C00003$$      255332M

SYS_LOB0000136441C00004$$      7170M

SYS_C0082042                  1305M

SYS_C0080433                  1340M

2.根據LOB段查詢該該lob段屬於哪個表

select table_name,segment_name from dba_lobs where segment_name='SYS_LOB0000136091C00003$$';

經查得知是ADU_*表佔了很多容量

3.用Dbvisulizer連到資料庫,重複資料刪除的資料行,但刪除這些重複的資料後,並不會釋放出磁碟空間

4.釋放lob類型資料佔據的空間

alter table adu_* move tablespace BFPICK lob(content) store as (tablespace bfpick)

5.之後就釋放了重複資料所佔的空間了,然後在對該表重建索引

alter index ***** rebuild;

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.