Oracle创建表空间创建用户和用户授权

--创建表空间
CREATE TABLESPACE WORKFLOW01 LOGGING DATAFILE 'D:oracleadminoanetWORKFLOW01.dbf'
SIZE 100M AUTOEXTEND ON NEXT 32M MAXSIZE 500M EXTENT MANAGEMENT LOCAL;

--创建临时表空间
create temporary tablespace TEMP11 tempfile 'D:oracleadminoanetTEMP11.dbf'
size 100m autoextend on next 32m maxsize 500m extent management local;

--创建用户
CREATE USER t_base IDENTIFIED BY gd_base DEFAULT TABLESPACE WORKFLOW01 TEMPORARY TABLESPACE TEMP11;

--用户授权
grant connect,resource,dba to t_base;grant create session to t_base;

--删除表空间
drop tablespace WORKFLOW01 including contents and datafiles cascade constraints ;

--删除用户信息
drop user t_base cascade;

原文地址:https://www.cnblogs.com/panchangde/p/11767771.html