You need to allow user ANDREW to: 1. Modify the TITLE and ADDRESS columns of your CUSTOMERS table. 2. GRANT that permission to other users. Which statement will do this?
A.
GRANT UPDATE ON customers.title, customers.address TO andrew;
B.
GRANT UPDATE (title, address) ON customers TO andrew;
C.
GRANT UPDATE (title, address) ON customers TO andrew WITH GRANT OPTION;
D.
GRANT UPDATE ON customers.title, customers.address TO andrew WITH ADMIN OPTION;
E.
GRANT UPDATE ON customers.title, customers.address TO andrew WITH GRANT OPTION;
F.
GRANT UPDATE (title, address) ON customers TO andrew WITH ADMIN OPTION;
C is the correct answer.
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/GRANT.html#GUID-20B4E2C0-A7F8-4BC8-A5E8-BE61BDC41AC3__I2126048
Whats the difference between C & E ?
C. GRANT UPDATE (title, address) ON customers TO andrew WITH GRANT OPTION;
E. GRANT UPDATE ON customers.title, customers.address TO andrew WITH GRANT OPTION;
C is correct!
WITH GRANT OPTION
now the user ANDREW can give grants to other users.
GRANT UPDATE(TITLE) ON CUSTOMERS TO HR;
If REVOKE UPDATE(TITLE,ADDRESS) ON CUSTOMERS FROM ANDREW
is executed then eventually HR will also lose the grants.
C is correct.
The owner of an object can grant it to another user by specifying the WITH GRANT OPTION clause in the GRANT statement. In this case, the new grantee can then grant the same level of access to other users or roles. Here are three points to keep in mind about the WITH GRANT OPTION clause:
https://www.oreilly.com/library/view/oracle-database-administration/1565925165/ch06s01s05s01.html#:~:text=The%20owner%20of%20an%20object,to%20other%20users%20or%20roles.
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.
nejak
Highly Voted 2 years, 2 months agobraintop
Most Recent 1 month, 2 weeks agokay000001
1 month, 4 weeks agoDrexan
2 months, 1 week agoa947739
5 months, 3 weeks agoalelejaja
7 months, 2 weeks agoMIGHTYSTUNNERS
8 months, 1 week agoNSilva
8 months, 2 weeks agoLee_jong_suk
1 year agoChandra1104
1 year, 9 months agotawa_z58
1 year, 11 months ago