linux下oracle数据文件管理操作命令
新增数据文件:
alter tablespace test add datafile '/opt/oracle/oradata/tese01.dbf' size 100M;
数据文件resize:
alter tablespace name datafile 1 resize 500M;
alter database datafile 1 resize 500M;
数据文件脱机:
alter tablespace test datafile 2 offline;
alter database datafile 2 offline (drop);
表空间扩容:
1.增大数据文件
alter tablespace name datafile '/opt/oracle/oradata/name01.dbf' resize 500M;
2.新增数据文件:
alter tablespace user_data add datafile '/opt/oracle/oradata/user01.dbf' size 50M;
表空间清理
drop tablespace user_data including contents and datafiles;
表空间coalesce
alter tablespace user_data coalesce;