OCP-1Z0-051-V9.02-49题

来源:互联网 发布:java为app接口开发实例 编辑:程序博客网 时间:2024/06/08 15:58
49. 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;
A. CREATE SYNONYM ord FOR orders; This command is issued by OE.
B. CREATE PUBLIC SYNONYM  ord FOR orders; This command is issued by OE.
C. CREATE SYNONYM  ord FOR oe.orders; This command is issued by the database administrator.
D. CREATE PUBLIC SYNONYM ord FOR oe.orders; This command is issued by the database administrator.
Answer: D
答案解析:
参考:http://blog.csdn.net/rlhua/article/details/12781353
题意的问题,要创建一个同义词,使HR用户可以通过SELECT * FROM ord;来查询OE的orders表。
只能由数据库管理员创建公用的同义词,使HR用户来访问。
C创建的私有同义词,因为由DBA用户创建的,所以只能由DBA用户访问。