Para criar o link primeiro configure o seu tnsnames.ora (do servidor do banco onde vc quer criar o vinculo)
abra o tnsnames.ora e inclua o apelido da conexao:
BANCOREMOTO =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.11.12)(PORT = 1521))
)
(CONNECT_DATA =
(SID = bdo)
)
)
sqlplus / as sysdba
sql> CREATE public DATABASE LINK PRODUC CONNECT TO scott IDENTIFIED BY tiger using 'BANCOREMOTO';
sql> SELECT * FROM v$instance@produc;
abra o tnsnames.ora e inclua o apelido da conexao:
BANCOREMOTO =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.11.12)(PORT = 1521))
)
(CONNECT_DATA =
(SID = bdo)
)
)
sqlplus / as sysdba
sql> CREATE public DATABASE LINK PRODUC CONNECT TO scott IDENTIFIED BY tiger using 'BANCOREMOTO';
sql> SELECT * FROM v$instance@produc;
Comentários