您的位置:首页 > 数据库 > Oracle

oracle新增表空间数据文件和重设表空间大小及删除表空间

2018-01-15 17:55 295 查看
1、

--新增表空间数据文件

alter tablespace perdate2 add datafile 'D:\oracle11\oradata\tablespaces\test.dbf'

size 100m

autoextend on

next 50m maxsize unlimited;

2、

--重设表空间大小

alter database datafile 'D:\oracle11\oradata\tablespaces\test.dbf'

resize 100m;

3、

--删除表空间和数据文件
drop tablespace test_temp including contents and datafiles;

drop tablespace test including contents and datafiles;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息