Which statement is true regarding the above SQL statement?

SLS is a private synonym for the SH.SALES table.
The user SH issues the following command:
DROP SYNONYM sls;
Which statement is true regarding the above SQL statement?

SLS is a private synonym for the SH.SALES table.
The user SH issues the following command:
DROP SYNONYM sls;
Which statement is true regarding the above SQL statement?

A.
Only the synonym would be dropped.

B.
The synonym would be dropped and the corresponding table would become invalid.

C.
The synonym would be dropped and the packages referring to the synonym would be dropped.

D.
The synonym would be dropped and any PUBLIC synonym with the same name becomes invalid.

Explanation:
A synonym is an alias for a table (or a view). Users can execute SQL statements against the synonym, and the
database will map them into statements against the object to which the synonym points.
Private synonyms are schema objects. Either they must be in your own schema, or they must be qualified with
the schema name. Public synonyms exist independently of a schema. A public synonym can be referred to by
any user to whom permission has been granted to see it without the need to qualify it with a schema name.
Private synonyms must be a unique name within their schema. Public synonyms can have the same name as
schema objects. When executing statements that address objects without a schema qualifier, Oracle will first
look for the object in the local schema, and only if it cannot be found will it look for a public synonym.



Leave a Reply 0

Your email address will not be published. Required fields are marked *