1、建表空间

create tablespace 表空间名

datafile  'D:\app\Administrator\oradata\orcl\ABC.DBF'

size 100M autoextend on next 50M maxsize unlimited


2、建用户

create  user 用户名  identified by password

default tablespace 表空间名

temporary tablespace temp   (默认表空间名)


3、给用户赋予权限
grant connect,resource,dba to 用户名


4、更改表空间名

alter tablespace  表空间名1  rename to  表空间新名


5、删除表空间

drop tablespace 表空间名 including contents and datafiles