exam questions

Exam 1z0-083 All Questions

View all questions & answers for the 1z0-083 exam

Exam 1z0-083 topic 1 question 138 discussion

Actual exam question from Oracle's 1z0-083
Question #: 138
Topic #: 1
[All 1z0-083 Questions]

Examine this configuration:
1. CDB1 is a container database.
2. COMMON_USER_PREFIX is set to an empty string.
3. PDB1 is a pluggable database in CDB1.
4. APP1_ROOT is an application container in CDB1.
5. APP1_PDB1 is an application PDB in APP1_ROOT.
You execute these commands:
$ sqlplus sys/oracle@localhost:1521/cdb1 as sysdba
SQL> CREATE ROLE role1 CONTAINER=CURRENT;
What is true?

  • A. It will return an error because creation of a local role is not allowed in CDB$ROOT.
  • B. ROLE1 will be created only in CDB$ROOT and APP1_ROOT.
  • C. ROLE1 will be created in CDB$ROOT, PDB1, APP1_ROOT, and APP1_PDB1.
  • D. ROLE1 will be created only in CDB$ROOT.
  • E. It will return an error because common roles must start with C##.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RinD
Highly Voted 3 years, 2 months ago
A correct
upvoted 17 times
vkra
1 year, 5 months ago
From the tests: ORA-65049: Creation of local user or role is not allowed in this container. Cause: An attempt was made to create a local user or role in CDB$ROOT or an application root. Action: If trying to create a common user or role, specify CONTAINER=ALL.
upvoted 1 times
...
...
Kuraudio
Most Recent 7 months ago
Selected Answer: A
To specify the CONTAINER clause, you must be connected to a multitenant container database (CDB). To specify CONTAINER = ALL, the current container must be the root. To specify CONTAINER = CURRENT, the current container must be a pluggable database (PDB).
upvoted 1 times
...
_gio_
1 year, 1 month ago
Selected Answer: A
tested
upvoted 1 times
...
ScottL
1 year, 3 months ago
Selected Answer: A
ERROR at line 1: ORA-65049: Creation of local user or role is not allowed in this container
upvoted 1 times
...
hilaire
1 year, 7 months ago
A correct test
upvoted 2 times
...
mtnetmaker
2 years, 2 months ago
SQL> alter system set common_user_prefix='' scope=spfile; System altered. SQL> shut immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> startup ORACLE instance started. Total System Global Area 960495072 bytes Fixed Size 9141728 bytes Variable Size 306184192 bytes Database Buffers 637534208 bytes Redo Buffers 7634944 bytes Database mounted. Database opened. SQL> show parameter prefix NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ common_user_prefix string os_authent_prefix string ops$ private_temp_table_prefix string ORA$PTT_ SQL> SQL> SQL> create role role1 container=current; create role role1 container=current * ERROR at line 1: ORA-65049: Creation of local user or role is not allowed in this container SQL>
upvoted 4 times
...
abebeW
2 years, 9 months ago
E Due to lack of C##
upvoted 1 times
G_C
1 year, 10 months ago
Consider the word "must" in answer E. Common roles CAN start with C##, so answer A is correct not E as you wrote.
upvoted 1 times
...
...
nobody347
2 years, 10 months ago
A 100% Tested in lab alter system set common_user_prefix = '' scope = spfile; start force; create role role1 container=current; ERROR at line 1: ORA-65049: Creation of local user or role is not allowed in this container.
upvoted 3 times
...
arpz
2 years, 11 months ago
Should be D If COMMON_USER_PREFIX is set to an empty string, Oracle will not enforce any restrictions on the names of common or local users, roles, and profiles. Setting this parameter to an empty string will result in no restrictions being placed on names of common and local users, roles, and profiles
upvoted 2 times
vnhoang76
2 years, 8 months ago
Agree with you. If COMMON_USER_PREFIX is set to an empty string, Oracle will not enforce any restrictions on the names of common or local users, roles, and profiles. Setting this parameter to an empty string will result in no restrictions being placed on names of common and local users, roles, and profiles, which could lead to conflicts between the names of local and common users, roles, and profiles when a PDB is plugged into a different CDB, or when opening a PDB that was closed when a common user was created. https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/COMMON_USER_PREFIX.html#GUID-516ADCCF-3661-4B54-908A-7041854EA14F
upvoted 2 times
Kuraudio
7 months ago
It says there are no restrictions to the name used, not if the user can be created or not
upvoted 1 times
...
freemun05
2 years, 4 months ago
set the parameter and try it )
upvoted 1 times
...
...
...
BriC
3 years ago
Correct answer is A. You cannot execute create role statement with CONTAINER=CURRENT from CDB$ROOT CONTAINER Clause The CONTAINER clause applies when you are connected to a CDB. However, it is not necessary to specify the CONTAINER clause because its default values are the only allowed values. To create a common role, you must be connected to the root. You can optionally specify CONTAINER = ALL, which is the default when you are connected to the root. To create a local role, you must be connected to a PDB. You can optionally specify CONTAINER = CURRENT, which is the default when you are connected to a PDB.
upvoted 4 times
...
niabs
3 years ago
the command should work no as COMMON_USER_PREFIX is set set to empty string? So I think A is false
upvoted 1 times
...
ObserverPL
3 years, 2 months ago
Agree, A is correct: SQL> create role testrole container=current; create role testrole container=current * ERROR at line 1: ORA-65049: Creation of local user or role is not allowed in this container.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago