创建了一个角色role1,给角色授予表t1的权限,并把角色授权给用户sino,但是用户sino去访问表t1提示没有权限:272: No SELECT permission for t1。是什么原因呢?
[informix@vm84145 ~]$ dbaccess testdb -
Database selected.
> create role role1;
Role created.
> grant all on t1 to role1;
Permission granted.
> grant role1 to sino;
Permission granted.
>
Database closed.
[informix@vm84145 ~]$ exit
logout
[root@vm84145 ~]# su - sino
Last login: Fri Sep 1 14:30:07 CST 2023 on pts/3
[sino@vm84145 ~]$ dbaccess testdb -
Database selected.
> select * from t1;
272: No SELECT permission for t1.
Error in line 1
Near character position 16
>