I need to convert a database link that I have in Oracle from a normal public database link to a public shared database link.
I ran the following as my user with DBA privileges to make the link shared:
DROP PUBLIC DATABASE LINK "MYDBLINK";
CREATE SHARED PUBLIC DATABASE LINK "MYDBLINK"
AUTHENTICATED BY SOME_USER
IDENTIFIED BY thepassword
USING 'OTHERDB';
I used the same username and password as the database link was already using.
When I query across the database link with my user that has DBA privileges, it works fine. But when I use a non-DBA privileged user, and I inspect the database link, it shows that the user name for the database link is null, and if I try to query across the link, I get:
ORA-01017: invalid username/password; logon denied
Any ideas why the link would behave differently for non-DBA users?
IDENTIFIED BY 'thepassword'in single quotes.