表空间

--创建表空间权限
grant create tablespace to QJT
--删除表空间权限
grant DROP tablespace to QJT

--创建表空间
create tablespace qjttest
datafile 'F:\app\QiuShao\oradata\orcl\qjt_1.dbf' size 10m,
'F:\app\QiuShao\oradata\orcl\qjt_2.dbf' size 10m
autoextend on next 32m maxsize unlimited

--检索当前用户的表空间
select tablespace_name from user_tablespaces; 

--删除表空间
drop tablespace qjttest

--删除表空间的同时清除物理文件
drop tablespace qjttest including contents and datafiles

posted on 2017-09-18 08:39  溜氓  阅读(106)  评论(0编辑  收藏  举报

导航