Oracle7 Server SQL Reference

Contents Index Home Previous Next

DROP SYNONYM

Purpose

To remove a synonym from the database.

Prerequisites

If you want to drop a private synonym, either the synonym must be in your own schema or you must have DROP ANY SYNONYM system privilege. If you want to drop a PUBLIC synonym, either the synonym must be in your own schema or you must have DROP ANY PUBLIC SYNONYM system privilege.

If you are using Trusted Oracle7 in DBMS MAC mode, your DBMS label must match the synonym's creation label or you must satisfy one of the following criteria:

Syntax

Keywords and Parameters

PUBLIC

must be specified to drop a public synonym. You cannot specify schema if you have specified PUBLIC.

schema

is the schema containing the synonym. If you omit schema, Oracle7 assumes the synonym is in your own schema.

synonym

is the name of the synonym to be dropped.

Usage Notes

You can change the definition of a synonym by dropping and recreating it.

Example

To drop a synonym named MARKET, issue the following statement:

DROP SYNONYM market 

Related Topic

CREATE SYNONYM command [*]


Contents Index Home Previous Next