我正在使用 oracle 和 php 创建一个用于分配的数据库,我必须展示角色的使用。我创建了一个名为employee 的新角色并将其分配给一个名为employee1 的新用户
CREATE ROLE read_only;
GRANT create session TO read_only;
GRANT select ON workson TO read_only;
GRANT select ON employee TO read_only;
GRANT select ON project TO read_only;
GRANT select ON department TO read_only;
CREATE ROLE employee;
GRANT read_only TO employee;
GRANT update ON employee TO employee;
GRANT insert ON workson TO employee;
Create user employee1 identified by qwerty1;
GRANT employee TO employee1;
为什么在以employee1 连接时使用任何选择说没有这样的表。select * from employee 表示没有表。我的角色是错误的还是什么?