创建表空间 用户 授权
create tablespace liuzhen_tablespace datafile 'D:\liuzhen_oracle_data\liuzhen_data.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local;
create user liuzhen identified by 123456 default tablespace liuzhen_tablespace;
grant connect,resource,dba to liuzhen;
删除表空间,同时删除数据文件:
drop tablespace liuzhen_tablespace including contents and datafiles;
Oracle 为用户指定表空间和修改用户的表空间 语法
ALTER USER liuzhen DEFAULT TABLESPACE liuzhen_tablespace;