I tried to grant CONNECT
to a user through a role:
CREATE ROLE my_role IDENTIFIED BY "passwd";
GRANT CONNECT TO my_role;
CREATE USER my_user IDENTIFIED BY "passwd";
GRANT my_role TO my_user;
When I try this in 10g it works fine, while in 11g login is rejected:
ORA-01045:
user MY_USER lacks CREATE SESSION privilege; logon denied
Granting CREATE SESSION
to the role does not make a difference.
I can only login after directly granting CONNECT
(or CREATE SESSION
) to the user.
Has Oracle changed this behavior or am I doing something wrong?