QuestionQ44

VerifiedCreating Other Schema Objects

The ORDERS table is owned by user OE. OE has granted the SELECT privilege on the ORDERS table to user HR.

Which statement creates a synonym ORD that allows HR to successfully execute the following query?

SELECT * FROM ord;  
Explanation

A public synonym is required for HR to resolve the unqualified name ORD. The synonym must identify the base object as OE.ORDERS, and HR already has the required SELECT privilege on that underlying table. Creating a public synonym requires the CREATE PUBLIC SYNONYM system privilege, which is normally available to a database administrator.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!