1、程序报错,无法进行修改操作,通过日志,看到如下错误

Oracle扩容表空间-LMLPHP

2、通过google查询,问题是表空间文件不够了

SELECT a.tablespace_name "表空间名",a.bytes / 1024 / 1024 "表空间大小(M)",(a.bytes - b.bytes) / 1024 / 1024 "已使用空间(M)",b.bytes / 1024 / 1024 "空闲空间(M)",round(((a.bytes - b.bytes) / a.bytes) * 100, 2) "使用比" 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;

Oracle扩容表空间-LMLPHP

3、查看表空间文件位置

SELECT * FROM dba_data_files WHERE tablespace_name = 'LMSTEST';

4、增加表空间文件

alter tablespace LMSTEST add datafile '/home/oracle/data/lmstest.dbf' size 5120M;

Oracle扩容表空间-LMLPHP

05-24 09:32