Oracle Tutorial

  • Home
  • Start Here
  • Basics
  • Advanced
    • Oracle View
    • Oracle Index
    • Oracle Synonym
    • Oracle Sequence
    • Oracle Administration
  • PL/SQL
  • Functions
    • Aggregate Functions
    • Analytic Functions
    • Comparison Functions
    • Date Functions
    • String Functions
  • API
    • Python Oracle
Home / Oracle Database Administration / Oracle DROP DATABASE LINK

Oracle DROP DATABASE LINK

Summary: in this tutorial, you will learn how to use the Oracle DROP DATABASE LINK statement to remove a database link from the database.

Introduction to the Oracle DROP DATABASE LINK statement

The DROP DATABASE LINK statement allows you to drop a database link from the database. Here is the syntax of the DROP DATABASE LINK statement:

DROP DATABASE LINK dblink;

In this syntax, you specify the name of the database link ( dblink) that you want to remove after the DROP DATABASE LINK keywords.

The DROP DATABASE LINK statement can remove a private database link. To remove a public database link, you add the PUBLIC keyword as shown in the following statement:

DROP PUBLIC DATABASE LINK dblink;

Note that to drop a public database link, you need to have the DROP PUBLIC DATABASE DATABASE LINK system privilege.

Restrictions of the DROP DATABASE LINK statement:

  • First, you cannot drop a database link in a schema of another user.
  • Second, you cannot qualify the dblink with the name of a schema like: schema.dblink because Oracle will interpret schema.dblink as the entire name of a database link in your own schema. Notice that the name of a database link can contain periods (.)

Oracle DROP DATABASE LINK statement example

This example removes the SALES private database link created in the CREATE DATABASE LINK tutorial:

DROP DATABASE LINK sales;

In this tutorial, you have learned how to the Oracle DROP DATABASE LINK statement to remove a database link from the database.

  • Was this tutorial helpful?
  • YesNo
Previous Oracle ALTER DATABASE LINK

Getting Started

  • What Is Oracle Database
  • Install Oracle Database Server
  • Download Oracle Sample Database
  • Create Oracle Sample Database
  • Connect To Oracle Database Server

Oracle Data Manipulation

  • SELECT
  • Oracle DUAL Table
  • ORDER BY
  • SELECT DISTINCT
  • WHERE
  • Table & Column Aliases
  • AND
  • OR
  • FETCH
  • BETWEEN
  • IN
  • LIKE
  • IS NULL
  • Joins
  • INNER JOIN
  • LEFT JOIN
  • RIGHT JOIN
  • FULL OUTER JOIN
  • CROSS JOIN
  • Self Join
  • GROUP BY
  • HAVING
  • UNION
  • INTERSECT
  • MINUS
  • GROUPING SETS
  • CUBE
  • ROLLUP
  • PIVOT
  • UNPIVOT
  • INSERT
  • INSERT INTO SELECT
  • INSERT ALL
  • UPDATE
  • DELETE
  • MERGE
  • Subquery
  • Correlated Subquery
  • EXISTS
  • NOT EXISTS
  • ANY
  • ALL

Oracle Data Types

  • Oracle Data Types
  • NUMBER
  • FLOAT
  • BINARY_FLOAT
  • CHAR
  • NCHAR
  • VARCHAR2
  • NVARCHAR2
  • DATE
  • INTERVAL
  • TIMESTAMP
  • TIMESTAMP WITH TIME ZONE

Oracle Data Definition

  • CREATE TABLE
  • Identity Column
  • ALTER TABLE
  • ALTER TABLE ADD Column
  • ALTER TABLE MODIFY Column
  • Drop Columns
  • DROP TABLE
  • TRUNCATE TABLE
  • RENAME Table
  • Oracle Virtual Column

Oracle Constraints

  • PRIMARY KEY
  • FOREIGN KEY
  • UNIQUE
  • CHECK
  • NOT NULL

Oracle Views

  • CREATE VIEW
  • DROP VIEW
  • Updatable Views
  • Inline Views
  • WITH CHECK OPTION

About Oracle Tutorial

OracleTututorial.com website provides Developers and Database Administrators with the updated Oracle tutorials, scripts, and tips.

Search

Recent Tutorials

  • Oracle Implicit Statement Results
  • Calling PL/SQL Stored Functions in Python
  • Calling PL/SQL Procedures in Python
  • Managing Transaction in Python
  • Deleting Data From Oracle Database in Python

Site Links

  • Oracle Books
  • About
  • Contact
  • Privacy Policy
  • Terms of Use

Copyright © 2021 Oracle Tutorial. All Rights Reserved.