① 创建表空间
create tablespace YGSB datafile 'D:/oracle/oradata/hzh/HZH.dbf' size 200m autoextend on next 10m maxsize unlimited;
② 创建新用户
运行"PL/SQL Developer"工具,以DBA(System)的身份登录:
1.新建"User(用户)"
2. 设置用户名、口令、默认表空间和临时表空间
create user YGSB identified by ygsb default tablespace YGSB
temporary tablespace TEMP profile DEFAULT;
3.设置角色权限
grant dba to YGSB;
4.设置系统权限
grant unlimited tablespace to YGSB;
5.点击"应用",新用户创建成功。