1、增加数据文件扩容
ALTER TABLESPACE app_data ADD DATAFILE 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\EDWTEST\APP04.DBF' SIZE 30G AUTOEXTEND ON NEXT 1G MAXSIZE UNLIMITED;
ALTER database datafile '/ora/oradata/radius/undo.dbf' resize 32G;
alter tablespace sysaux add datafile '+DATA' size 1g autoextend on next 1g;(共享磁盘上创建表空间文件对应的sql语句)
2、UNDO表空间扩容
create undo tablespace undotbs2 datafile 'xxx.dbf' size 30G reuse;
alter system set undo_tablespace=undotbs2;
drop tablespace undotbs1 including contents and datafiles;
3、创建表空间
create tablespace DEMOSPACE datafile 'E:/oracle_tablespaces/DEMOSPACE_TBSPACE.dbf' size 1500M autoextend on next 5M maxsize 3000M;
开启自动扩展功能语法:alter database datafile '对应的数据文件路径信息' autoextend on;关闭自动扩展功能语法:alter database datafile '对应的数据文件路径信息' autoextend off;