Oracle
1Z0-047 · Question #218
OE and SCOTT are the users in the database. The ORDERS table is owned by OE. Evaluate the statements issued by the DBA in the following sequence: CREATE ROLE r1; GRANT SELECT, INSERT ON oe. orders…
The correct answer is A. SCOTT would be able to query the OE.ORDERS table. See the full explanation below for the reasoning.
Question
OE and SCOTT are the users in the database. The ORDERS table is owned by OE. Evaluate the statements issued by the DBA in the following sequence:
CREATE ROLE r1; GRANT SELECT, INSERT ON oe. orders TO r1; GRANT r1 TO scott; GRANT SELECT ON oe. orders TO scott; REVOKE SELECT ON oe.orders FROM scott; What would be the outcome after executing the statements?
Options
- ASCOTT would be able to query the OE.ORDERS table.
- BSCOTT would not be able to query the OE.ORDERS table.
- CThe REVOKE statement would remove the SELECT privilege from SCOTT as well as from the role R1.
- DThe REVOKE statement would give an error because the SELECT privilege has been granted to the role R1
How the community answered
(19 responses)- A74% (14)
- B11% (2)
- C5% (1)
- D11% (2)
Community Discussion
No community discussion yet for this question.