I can grant a role to another role unless the granted role is password protected, even when I know the password. I keep getting "ORA-00990: missing or invalid privilege" The system privileges the Schema Owner of the roles has are RESOURCE, DBA and CONNECT.
grant OBLAH_DEE IDENTIFIED BY "15gx9FR7GG" to "OBLAH_DAH"
Best Answer
First of all, your command is syntactically incorrect. It should be:
The problem with that: you can not grant password protected roles to another role. See https://support.oracle.com/epmos/faces/DocContentDisplay?id=1663997.1 for details.
grant::=
grant_system_privileges::=
grantee_identified_by:
As you can see in the 3rd picture, when using the
IDENTIFIED BY
clasue, the grantee can be only an user, but not a role. (By the way, that clasue is used for something else.) Using the regulargrantee_clause
, this is the error you would receive:And what you tried:
As a workaround, the below parameter can be set to revert to the old behaviour:
You must restart the database for the change to take effect.