Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

synonym related

913578Jul 23 2013 — edited Jul 23 2013

hi,

i am preparing for oracle certifications, in some sample question and answers i see the below question.

The ORDERS table belongs to the user OE. OE has granted the SELECT

privilege on the ORDERS table to the user HR. Which statement would create

a synonym ORD so that HR can execute the following query successfully?

SELECT * FROM ord;

Options:

1. CREATE SYNONYM ord FOR orders; This command is issued by OE.

2. CREATE PUBLIC SYNONYM ord FOR orders; This command is issued by

OE.

3. CREATE SYNONYM ord FOR oe.orders; This command is issued by the

database administrator.

4. CREATE PUBLIC SYNONYM ord FOR oe.orders; This command is

issued by the database administrator.

Ans: 4

i agree that opt.4 is correct but, i can see option 2 is also correct because we can create a synonym on the schema where the table is present. can you please tell me i am correct.

even i have tested this scenario so option 2 is working for me.

thanks,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2013
Added on Jul 23 2013
5 comments
223 views