Oracle表空间和用户操作实例

删除表空间和临时表空间

drop tablespace still including contents and datafiles;
drop tablespace still_temp including contents and datafiles cascade constraints;

删除用户

drop user still cascade;

创建临时表空间

create temporary tablespace still_temp tempfile 'D:\oracle\oradata\still\still_temp.dbf'size 50m autoextend on next 50m maxsize 20480m;

创建表空间

create tablespace stillloggingdatafile 'D:\oracle\oradata\still\still.dbf'size 50m autoextend on next 50m maxsize 20480mextent management local;

创建用户

create user still identified by stilldefault tablespace stilltemporary tablespace still_temp;

授予权限

grant connect,resource,dba to still;