--创建表空间
create tablespace tablespace_name datafile 'D:\app\Administrator\oradata\orcl\
tablespace_name
.dbf' size 100M autoextend on next 10M maxsize unlimited extent management local;
--创建用户
create user user_name identified by user_pwd default tablespace
tablespace_name
Temporary tablespace temp;
--给用户授权
grant connect,resource,dba to user_name;
--修改用户的密码
alter user user_name identified by pwd;
--删除表空间
drop tablespace 表空间 including contents and datafiles cascade constraints;
--删除用户
drop user 用户名 cascade;