ORA-01691:Lob 段無法通過8192(在表空間XXX中)擴展
1.報錯
略
2.百度查詢sql
select tablespace_name, file_id, file_name,
round(bytes/(1024*1024),0) total_space
from dba_data_files
order by tablespace_name
select a.tablespace_name,a.bytes/1024/1024 “sum MB”,
(a.bytes-b.bytes)/1024/1024 “used MB”,b.bytes/1024/1024 “free MB”,
round (((a.bytes-b.bytes)/a.bytes)*100,2) “used%” from
(select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) a,
(select tablespace_name,sum(bytes) bytes,max (bytes) largest from dba_free_space group by tablespace_name)b
where a.tablespace_name=b.tablespace_name
order by ((a.bytes-b.bytes)/a.bytes) desc;
3.發現前兩查詢關聯
- 第三張圖片是前兩張之和,即上半部分紅色部分最後一列加起來是下半部分紅色部分第二列的大小;
4.解決——增加一個新的表空間
alter tablespace users add datafile ‘/datafs/oradata/orcl/users04dbf’ size 3072m;
5.說明
- 1.圖一圖二分別是我增加完之後的情況,原來沒有/datafs/oradata/orcl/users04dbf,查詢圖二sql使用率99%;
- 2.怎麼把前兩個圖關聯起來想的,是我蒙的;增加後親測有效
- 3.還用另外兩種方式,分別是更改原有表空間大小、使原表空間自動變大,因爲不懂,怕弄錯不嘗試,但相關方法參考第6部分的感謝
6.感謝:
https://blog.csdn.net/x6582026/article/details/81019174