1Z0-060 · Question #189
Your multitenant container database (CDB) contains some pluggable databases (PDBs), you execute the following commands to create a common user and grant connect privileges: Which statement is true…
The correct answer is C. The user can connect to the root and all PDBs. Common users created in a CDB root with CONTAINER=ALL on the CONNECT privilege can authenticate to the root and every PDB in the multitenant environment.
Question
Your multitenant container database (CDB) contains some pluggable databases (PDBs), you execute the following commands to create a common user and grant connect privileges:
Which statement is true about the common user created by the command?
Exhibit
Options
- AThe user cannot connect any database because the CONTAINER clause is missing.
- BThe user can connect only to the root database.
- CThe user can connect to the root and all PDBs.
- DThe user cannot connect to any database because the CREATE ANY SESSION privilege must
How the community answered
(45 responses)- A11% (5)
- B2% (1)
- C82% (37)
- D4% (2)
Why each option
Common users created in a CDB root with CONTAINER=ALL on the CONNECT privilege can authenticate to the root and every PDB in the multitenant environment.
The CONTAINER clause is optional; its absence does not automatically invalidate the grant or block all connectivity - the actual scope depends on the specific grant syntax used.
Connecting only to root would result from a CONTAINER=CURRENT grant; a CONTAINER=ALL grant extends access to all PDBs as well.
When a common user is created in CDB$ROOT and CREATE SESSION (via the CONNECT role) is granted with CONTAINER=ALL, the privilege propagates to every container - both the root and all existing and future PDBs. This is the core behavior of common privileges in Oracle Multitenant architecture.
The CONNECT role includes CREATE SESSION, which is sufficient for logon; CREATE ANY SESSION is a separate and more powerful system privilege that is not required for basic connectivity.
Concept tested: Oracle CDB common user privileges and CONTAINER clause scope
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/managing-security-for-oracle-database-users.html
Topics
Community Discussion
No community discussion yet for this question.
