I'm working a migration project requiring an import of several Oracle
database schema onto an existing database. This requirement has brought about an interesting conflict where I now have two dblinks
with the same name:
- One is a private
dblink
which uses accountA
to access theFoobar
database - The other is a public
dblink
to the sameFoobar
database which uses accountB
for its access
Global Names
is set to true so I cannot change the names of these dblinks
.
I've already figured out through trial and error that when signed into schema that owns the private dblink
that the following:
SELECT *
FROM table@foobar;
will refer to the private dblink
and not the public one. But for situations where I require the account B
privileges, I cannot figure out how to explicitly refer to the public dblink
.
Does anyone know of syntax I can use to refer to the public @foobar
?