Granting privileges and roles commonly
The common privilege is a privilege that can be exercised across all containers in a container database. Depending only on the way it is granted, a privilege becomes common or local. When you grant a privilege commonly (across all containers) it becomes a common privilege. Only common users or roles can have common privileges. Only common role can be granted commonly.
Getting ready
For this recipe, you will need to connect to the root container as an existing common user who is able to grant a specific privilege or existing role (in our case, create session
, select any table
, c##role1
, c##role2
) to another existing common user (c##john
). If you want to try out examples in the How it works section, you should open pdb1
and pdb2
.
You will use the following:
- Common users
c##maja
andc##zoran
with the dba role granted commonly - Common user
c##john
- Common roles
c##role1
andc##role2
How to do it...
- You should connect to the root container as a common user who...