Oracle® Database SQL Reference 10g Release 1 (10.1) Part Number B10759-01 |
|
|
View PDF |
Purpose
Use the DROP
DATABASE
LINK
statement to remove a database link from the database.
Prerequisites
A private database link must be in your own schema. To drop a PUBLIC
database link, you must have the DROP
PUBLIC
DATABASE
LINK
system privilege.
Syntax
Semantics
You must specify PUBLIC
to drop a PUBLIC
database link.
Specify the name of the database link to be dropped.
You cannot drop a database link in another user's schema, and you cannot qualify dblink
with the name of a schema, because periods are permitted in names of database links. Therefore, Oracle Database interprets the entire name, such as ralph.linktosales
, as the name of a database link in your schema rather than as a database link named linktosales
in the schema ralph
.
Example
The following statement drops the public database link named remote
, which was created in "Defining a Public Database Link: Example":
DROP PUBLIC DATABASE LINK remote;