Database Networking (MOSC)

MOSC Banner

Creating database link from one Oracle database to another

edited Apr 30, 2013 6:33AM in Database Networking (MOSC) 4 commentsAnswered ✓
I need to create a public link from one Oracle database to another.

On first database DB1, I created an entry in tnsnames file for DB2 (the db I want to link to).

Then I am going to run the following sql on DB1:

CREATE PUBLIC DATABASE LINK DB2
CONNECT TO USR IDENTIFIED BY PWD
USING 'DB2';

Is that good enough or am I missing something? Do I still need a username in my CREATE LINK statement even though database link is public?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center