Oracle创建用户表空间和用户
--创建数据表空间 t_space1 为数据表空间名 datafile为数据文件路径
create tablespace t_space1 datafile 'E:\OracleTableSpace\space_1\t_space1.dbf' size 5M autoextend on next 5M maxsize 20M extent management local ;
--删除数据表空间
drop tablespace t_space1 including contents and datafiles;
--创建临时表空间
create temporary tablespace temp_space1 tempfile 'E:\OracleTableSpace\space_1\temp_space1.dbf' size 5M autoextend on next 5M maxsize 10M extent management local;
--删除临时表空间
drop temporary tablespace temp_space1 including contents and datafiles;
--创建用户并指定表空间
create user tdy identified by tdy
default tablespace t_space1
temporary tablespace temp_space1;
--授予权限
grant resource,connect to tdy;
--删除用户命
drop user tdy cascade;
推荐阅读: