Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Grant CREATE SESSION on 11g

Adelson_SmaniaAug 9 2010 — edited Aug 16 2010
Hi!

In Oracle 10g the statements bellow works perfectly. After execute them, I can connect with user MY_USER.

CREATE ROLE MY_ROLE IDENTIFIED BY MEGA;
GRANT CONNECT TO MY_ROLE;

CREATE USER MY_USER IDENTIFIED BY MEGA;
GRANT MY_ROLE TO MY_USER;


Although, in 11g I get the "ORA-01045: user MY_USER lacks CREATE SESSION privilege; logon denied" in the same situation. It only works if I grant "CREATE SESSION" directly to MY_USER.

Is there anyway to grant the privilege to my users through roles in 11g?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 13 2010
Added on Aug 9 2010
7 comments
26,327 views