Oracle9i SQL Reference Release 1 (9.0.1) Part Number A90125-01 |
|
SQL Statements:
DROP SEQUENCE to ROLLBACK, 3 of 20
Use the DROP
SYNONYM
statement to remove a synonym from the database or to change the definition of a synonym by dropping and re-creating it.
To drop a private synonym, either the synonym must be in your own schema or you must have the DROP
ANY
SYNONYM
system privilege.
To drop a PUBLIC
synonym, you must have the DROP
PUBLIC
SYNONYM
system privilege.
drop_synonym::=
drop_synonym
You must specify PUBLIC
to drop a public synonym. You cannot specify schema if you have specified PUBLIC
.
Specify the schema containing the synonym. If you omit schema, Oracle assumes the synonym is in your own schema.
Specify the name of the synonym to be dropped.
If you drop a synonym for a materialized view, or its containing table or materialized view, or any of its dependent tables, Oracle invalidates the materialized view.
DROP
SYNONYM
Example
To drop the public synonym named locations
(created in "Resolution of Synonyms Example"), issue the following statement:
DROP PUBLIC SYNONYM locations;
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|