oracle 修改表空间为扩展并限制最大值
查询当前数据库中表空间是否为自动扩展
select tablespace_name,file_name,autoextensible from dba_data_files;
.通过修改表空间的数据文件为自动扩展达到表空间为自动扩展的目的,并限制文件最大值
alter database datafile '/opt/app/oracle/oradata/caacdb/system01.dbf' autoextend on NEXT 50M maxsize 31G;
alter database datafile '/opt/app/oracle/oradata/caacdb/undotbs01.dbf' autoextend on NEXT 50M maxsize 31G;
alter database datafile '/opt/app/oracle/oradata/caacdb/sysaux01.dbf' autoextend on NEXT 50M maxsize 31G;
alter database datafile '/opt/app/oracle/oradata/caacdb/users01.dbf' autoextend on NEXT 50M maxsize 31G;
.总结修改语句语法
开启自动扩展功能语法:
alter database datafile '对应的数据文件路径信息' autoextend on;
关闭自动扩展功能语法:
alter database datafile '对应的数据文件路径信息' autoextend off;