1、创建表空间
创建语法
create tablespace 表空间名 datafile 物理文件路径 size 初始化大小 autoextend on next 扩展大小
创建示例
create tablespace test_tablespace datafile 'E:programoracle11g ablespace est_tablespace.dbf' size 512m autoextend on next 512m
2、创建用户
创建语法
create user 用户名 identified by 密码 default tablespace 表空间名
创建示例
create user test_zxp identified by test_zxp default tablespace test_tablespace
3、给用户授予角色
语法
grant 角色 to 用户
示例
grant dba to test_zxp
系统预定义角色
connect 连接
resource 访问资源权限,访问表、序列,不包括create session
dba 拥有所有权限