翻译自:http://www.bianceng.cn/database/Oracle/201409/44722.htm
ALTER TABLESPACE app_data ADD DATAFILE
'D:\ORACLE\PRODUCT\10.2.0\ORADATA\EDWTEST\APP03.DBF' SIZE 50M;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'D:\ORACLE\PRODUCT\10.2.0\ORADATA\EDWTEST\APP04.DBF' SIZE 50M
AUTOEXTEND ON NEXT 5M MAXSIZE 100M;
@H_404_45@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ALTER DATABASE DATAFILE 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\EDWTEST\APP03.DBF'
4:手工改变已存在数据文件的大小
ALTER DATABASE DATAFILE 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\EDWTEST\APP02.DBF'
RESIZE 100M;
扩展表空间的3种方法
alter database datafile '/home/oracle/ts01.dbf' resize 100m;
2把表空间设置为自动扩展
alter database datafile '/home/oracle/ts01.dbf' autoextend on next 5m maxsize unlimited;
alter tablespace ts01 add datafile '/home/oracle/ts02.dbf' size 2m;
原文链接:https://www.f2er.com/oracle/212798.html