CREATE/DROP DATABASE LINK |
CREATE [SHARED] [PUBLIC] DATABASE LINK dblink [CONNECT TO {CURRENT USER | username IDENTIFIED BY password [AUTHENTICATED BY username IDENTIFIED BY password] }] [USING 'connect string'] |
Creates a database link, which allows access to objects on a remote database.
DROP [PUBLIC] DATABASE LINK dblink
Removes a database link from the database.
Keywords
dblink
Specifies the name of the database link being created. Must be a valid Oracle object name.
SHARED
Specifies that a single network connection be shared across users when the multithreaded server is configured.
PUBLIC
Specifies that the database link will be available to all users. If omitted, the database link is private and available only to you.
CONNECT TO CURRENT USER
Specifies that a current user database link be created, which requires a global user with a valid account on the remote database.
CONNECT TO username
Specifies the username and password used to connect to the remote database.
AUTHENTICATED BY
Specifies a username and password on the remote database to be used for authentication when the SHARED keyword is used.
USING
Specifies the Net8 database specification for the remote database.
|
Examples
Create a public ...
Get Oracle SQL: the Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.