创建和管理用户作业
1. 创建一个口令认证的数据用户usera_exer,口令为usera,默认表空间为USERS,配额为10MB,初始账户为锁定状态。(需要在system或sys用户下创建。)

2. 为usera_exer用户授予create session权限、scott.emp的select权限和update权限,同时允许该用户将获得的权限授予其他用户。

3. 创建一个口令认证的数据库用户userb_exer,口令为userb。

4. 将用户usera_exer的账户解锁。

5. 用usera_exer登录数据库,查询和更新scott.emp中的数据,同时,将scott.emp的select和update权限授予用户 userb_exer。
usera_exer登录数据库

查询scott.emp中的数据

更新scott.emp中的数据

将scott.emp的select和update权限授予用户 userb_exer。

参考代码
create user usera_exer identified by usera
default tablespace users quota 10M on users account lock;
grant create session to usera_exer with admin option;
grant select,update on scott.emp to usera_exer with grant option;
create user userb_exer identified by userb;
alter user usera_exer account unlock;
conn usera_exer/usera;
select * from scott.emp;
update scott.emp set ename='ASIA' where ename='KING';
grant select,update on scott.emp to userb_exer;