DROP ANY SYNONYM system privilege - Drop private synonym in another users schema - Oracle

Q.  To drop a private synonym in another user's schema, you must have which system privilege?
- Published on 28 Jul 15

a. DROP SYNONYM
b. DROP ANY SYNONYM
c. DROP PUBLIC SYNONYM
d. All mentioned above

ANSWER: DROP ANY SYNONYM
 

    Discussion

  • Nirja Shah   -Posted on 30 Sep 15
    - You can drop any private synonym in your own schema.

    - To drop a private synonym in another user's schema, you must have the DROP ANY SYNONYM system privilege.

    - To drop a public synonym, you must have the DROP PUBLIC SYNONYM system privilege.

    - Drop a synonym that is no longer required using DROP SYNONYM statement.

    - To drop a private synonym, omit the PUBLIC keyword.

    - To drop a public synonym, include the PUBLIC keyword.

    - For example, the following statement drops the private synonym named emp:

    DROP SYNONYM emp;

    - The following statement drops the public synonym named public_emp:

    DROP PUBLIC SYNONYM public_emp;

    - When you drop a synonym, its definition is removed from the data dictionary.

    - All objects that reference a dropped synonym remain.

    - However, they become invalid (not usable).

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)