資料表空間增長過快

來源:互聯網
上載者:User
 

今天探索資料庫alert報資料表空間資料無發擴充的問題,暫時解決辦法:

1.增加資料檔案或者增大資料檔案

alter tablespace apps add datafile 'oradata/app1.dbf' size 10240M;
alter database datafile ''oradata/app1.dbf' resize 20480M;

2.truncate大對象

 

2.1 找到大於1G的資料區段

Select owner,segment_name,sum(bytes)/1024/1024 from dba_segment Group by owner,segment_namehaving sum(bytes)/1024/1024/>1000

2.2.根據查詢到的大的資料區段去查詢對應的表

Select table_name,segment_namefrom dba_lobs where segment_name='SYS_LOB0000092251C00005$$' 

由於找到的表是大對象,匯出全備份後truncate,以此來降低表的HWM。

 

目前只會truncate,其他辦法還沒學會(如何降低HWM),得努力!

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.