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

版权声明:本文为博主原创文章,转载请备注,感谢。 https://blog.csdn.net/chenglinlin526/article/details/79067190

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;

猜你喜欢

转载自blog.csdn.net/chenglinlin526/article/details/79067190
今日推荐