执行以下操作,需要用DBA登录,
- 删除表空间以及物理数据文件
drop tablespace tablespace_name including contents and datafiles;
- 删除用户
drop user 用户名 cascade;
- 新建表空间
create tablespace 表空间名字
datafile 'd:\app\tablespace\ITSVDB.dbf' size 1024M
autoextend on next 100M maxsize unlimited;
- 新建用户指定默认表空间
create user smz identified by smz default tablespace 表空间名字;
- 对用户进行授权
grant dba to smz;