问题:
Cause: java.sql.SQLException: ORA-01691: Lob 段 SYS.SYS_LOB0000000358C00040$$ 无法通过 1024 (在表空间 SYSAUX 中) 扩展
--查看表空间的名字及文件在哪
select tablespace_name,
file_id,
file_name,
round(bytes / (1024 * 1024), 0) total_space
from dba_data_files
where TABLESPACE_NAME = 'SYSAUX'
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;
--解决表空间问题:
--未达到32G 上限,可以改变空间文件大小:
alter database datafile '路径' resize 1000m ;
--举例:
alter database datafile '/home/oracle19/oradata/gbk/ORCLGBK/sysaux09.dbf' resize 1000m ;
--已达到32G 上线,给表空间增加数据文件:
ALTER TABLESPACE表空间名 ADD DATAFILE ' 路径' SIZE 100M AUTOEXTEND ON NEXT 100M; 举例:
ALTER TABLESPACE SYSAUX ADD DATAFILE '/home/oracle19/oradata/gbk/ORCLGBK/sysaux09.dbf' SIZE 100M AUTOEXTEND ON NEXT 100M;