Site search

Categories

Archives

Tags

RSS
XML RSS
What is this?
AddThis Feed Button

Social
Bookmarking


-- FREE --
IT Magazine
Subscriptions

Oracle Magazine Oracle Magazine Contains technology strategy articles, sample code, tips, Oracle and partner news, how-to articles for developers and DBAs

WebSite Magazine WebSite Magazine Practical advice, helpful tools and insights for website owners

Dr Dobb's Journal Dr Dobb's Journal enables coders to write the most efficient programs and help in daily programming quandaries

DM Review DM Review is recognized as the premier business intelligence, analytics and data warehousing publication
Various other Free IT magazine subscriptions
NoAdware Free Trial

NoAdware Remove
harmful
adware,
spyware,
trojans,
dialers
and worms!
- Featured ebook -

Database Normalization
by Alf Pedersen

Database Normalization ebook Understand and master how to normalize a database using methods richly documented with graphical ERD and server diagram examples



Drop Oracle database link

How to drop a database link

Dropping a database link from your Oracle database is as easy as doing the following:

drop database link remotedb;
or
drop public database link remotedb;

You will need no other system privilege other than the ‘create database link’ privilege granted directly
to your username or granted via a role to drop your own database link.

It is not possible to drop a database link belonging to another user.

If you try to specify another schema’s database link by qualifying it with a name,
Oracle will just look for a private database link in your schema with a name
which includes the other schema’s name and will not find it.

To drop a public database link, you will need the system privilege ‘drop public database link’.

For example:

SQL> connect / as sysdba
Connected.

SQL> drop database link scott.remotedb;
drop database link scott.remotedb
                   *
ERROR at line 1:
ORA-02024: database link not found

SQL> connect scott/tiger
Connected.
SQL> drop database link scott.remotedb;
drop database link scott.remotedb
                   *
ERROR at line 1:
ORA-02024: database link not found

SQL> drop database link remotedb;

Database link dropped.

Recommended reading: