Which statement is true about the user SKD after he/she is granted this role?

View the Exhibit and examine the privileges granted to the MGR_ROLE role.

The user SKD has been granted the CONNECT and RESOURCE roles only. The database administrator (DBA) grants MGR_ROLE to the user SKD by executing the command:
SQL> GRANT MGR_ROLE TO SKD WITH ADMIN OPTION;
Which statement is true about the user SKD after he/she is granted this role?
Exhibit:

View the Exhibit and examine the privileges granted to the MGR_ROLE role.

The user SKD has been granted the CONNECT and RESOURCE roles only. The database administrator (DBA) grants MGR_ROLE to the user SKD by executing the command:

SQL> GRANT MGR_ROLE TO SKD WITH ADMIN OPTION;

Which statement is true about the user SKD after he/she is granted this role?

A.
The user SKD can grant only the MGR_ROLE role to other users, but not the privileges in it

B.
The user SKD can revoke the MGR_ROLE only from the users for whom he/she is the grantor

C.
The user SKD can grant the privileges in the MGR_ROLE role to other users but not with ADMIN OPTION

D.
The user SKD can grant the privileges in the MGR_ROLE role to other users, but cannot revoke privileges from them



Leave a Reply 1

Your email address will not be published. Required fields are marked *


tanglihui

tanglihui

B

SYS user
SQL> create role test_role;

Role created.

SQL> grant create user to test_role;

Grant succeeded.

SQL> grant create user to test_role;

Grant succeeded.

SQL> grant test_role to user1 with admin option;

SQL> conn user1/test;
Connected.
SQL> select * from session_privs;

PRIVILEGE
—————————————-
CREATE SESSION
CREATE USER
CREATE TABLE
CREATE CLUSTER
CREATE SEQUENCE
CREATE PROCEDURE
CREATE TRIGGER
CREATE TYPE
CREATE OPERATOR
CREATE INDEXTYPE

10 rows selected.

SQL> create user user2 identified by test;

User created.

SQL> grant test_role to user2;

Grant succeeded.

SQL> conn user2/test;
Connected.
SQL> select * from session_privs;

PRIVILEGE
—————————————-
CREATE SESSION
CREATE USER

SQL> conn user1/test;
Connected.
SQL> revoke test_role from user2;

Revoke succeeded.

SQL>