Oracle数据库创建表空间

drop tablespace qb including contents and datafiles;
DROP TABLESPACE TJLGL INCLUDING CONTENTS AND DATAFILES;

drop user qb cascade

create tablespace qb
logging
datafile 'E:\app\landa6\oradata\qb.DBF' --(表空间路径)
size 32m 
autoextend on 
next 32m 
extent management local;

create user qb identified by qb default tablespace qb

grant dba to qb;--(分配权限给用户)



SELECT 'DELETE FROM '|| table_name || ';' FROM USER_TABLES ORDER BY TABLE_NAME;


posted @ 2015-08-05 17:43  林暗草惊风丶  阅读(278)  评论(0编辑  收藏  举报