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