oracle删除添加表空间

前端之家收集整理的这篇文章主要介绍了oracle删除添加表空间前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


sqlplus / as sysdba


CREATE TABLESPACE XFSBUY_DATA LOGGING DATAFILE 'F:\app\ora_db\jhzhshop.dbf'
SIZE 100M AUTOEXTEND ON NEXT 32M MAXSIZE 500M EXTENT MANAGEMENT LOCAL;


create temporary tablespace XFSBUY_DATA_temp tempfile 'F:\app\ora_db\jhzhshop_temp.dbf'
size 100m autoextend on next 32m maxsize 500m extent management local;


CREATE USER joker IDENTIFIED BY joker1988 DEFAULT TABLESPACE XFSBUY_DATA TEMPORARY TABLESPACE XFSBUY_DATA_temp;



删除表空间:
可以先将其offline
alter tablespace xx offline;
将磁盘上的数据文件一同删除
drop tablespace xxx including contents and datafiles;

猜你在找的Oracle相关文章