Oracle 表空间、查看、添加、删除

查看数据库下的所有表空间

 

select distinct tablespace_name from all_tables/tabs;

 

创建表空间

 

SQL> create tablespace test 2 logging 3 datafile 'test.dbf' size 5m ; 创建一个 名字为 test 的表空间:test.dbf 默认位于 oraclexe/app/oracle/product/10.2.0/server/database 【Oracle 10G XE 快捷版 】

 

删除表空间

drop tablespace test including contents and datafiles;

删除表空间以及位于磁盘上的 test.dbf  文件

 

drop  tablespace  test  ;

此时表空间的 test.dbf 文件依然存在

 

 

 

 

 

你可能感兴趣的:(Oracle 表空间、查看、添加、删除)