0% found this document useful (0 votes)
256 views3 pages

Review of Object Privileges

The document contains a quiz with 6 multiple choice questions that review object privileges in Oracle databases. The questions cover granting privileges like SELECT, INSERT, UPDATE, DELETE, EXECUTE on tables, views, procedures and functions to allow other users to access or modify various database objects.

Uploaded by

Catalina Achim
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
256 views3 pages

Review of Object Privileges

The document contains a quiz with 6 multiple choice questions that review object privileges in Oracle databases. The questions cover granting privileges like SELECT, INSERT, UPDATE, DELETE, EXECUTE on tables, views, procedures and functions to allow other users to access or modify various database objects.

Uploaded by

Catalina Achim
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Test: Quiz: Review of Object Privileges 1.

User COLLEEN owns an EMPLOYEES table and wants to allow user AYSE to cr eate indexes on the table. Which object privilege must Colleen grant to Ayse? Mark for Review (1) Points SELECT on EMPLOYEES INDEX on EMPLOYEES (*) ALTER on EMPLOYEES CREATE on EMPLOYEES None of the above

Correct 2. USERB creates a function called SEL_PROC (using Definer's Rights) which inclu des the statement: SELECT ... FROM usera.employees ...; USERC needs to execute UserB's procedure. What privileges are needed for this to work correctly? (Choose two.) Mark for Review (1) Points (Choose all correct answers) UserB needs SELECT on userA.employees (*) UserC needs SELECT on userA.employees UserC needs EXECUTE on userB.sel_proc (*) UserA needs EXECUTE on userB.sel_proc UserC needs EXECUTE on Userb

Correct 3. User TOM needs to grant both SELECT and INSERT privileges on both his E MPLOYEES and DEPARTMENTS tables to both DICK and HARRY. What is the smallest num ber of GRANT statements needed to do this? Mark for Review

(1) Points 1 2 (*) 3 4 8

Correct 4. User DIANE owns a DEPARTMENTS table. User JOEL needs to update the loca tion_id column of Diane's table, but no other columns. Which SQL statement shoul d Diane execute to allow this? Mark for Review (1) Points GRANT UPDATE ON departments TO joel; GRANT UPDATE ON departments(location_id) TO joel; GRANT UPDATE ON departments.location_id TO joel; GRANT UPDATE(location_id) ON departments TO joel; (*) GRANT UPDATE ON location_id OF departments TO joel;

Correct 5. User FRED creates a procedure called DEL_DEPT using Definer's Rights, w hich deletes a row from Fred's DEPARTMENTS table. What privilege(s) will user BO B need to be able to execute Fred's procedure? Mark for Review (1) Points EXECUTE on DEL_DEPT (*) EXECUTE on DEL_DEPT and DELETE on DEPARTMENTS EXECUTE on DEL_DEPT and DELETE on FRED.DEPARTMENTS

DELETE on FRED.DEPARTMENTS

Correct 6. User SVETLANA creates a view called EMP_VIEW that is based on a SELECT from her EMPLOYEES table. Svetlana now wants user PHIL to be able to query the v iew. What is the smallest set of object privileges that Svetlana must grant to P hil? Mark for Review (1) Points SELECT on EMP_VIEW and SELECT on EMPLOYEES SELECT and EXECUTE on EMP_VIEW SELECT on EMP_VIEW (*) SELECT on EMP_VIEW and REFERENCES on EMPLOYEES

Correct

You might also like