We have two databases in two different domains that connect via VPN. First domain is HLIOSNT with IP 192.168.100.x and
database name AIXSERV. The other domain is ATTIKOS with IP 192.168.1.x and (remote)database name ATTSERV. We want to
connect these two databases with a database link in oracle but the connection is fail.
We try the following steps:
We create a database link in a local database server with (oracle 8.1.7). The commands that we used is the following:
create database link remote_connect
connect to user1 identified by pass1 ussing ‘ATTSERV’.
The ‘attserv’ is the connection string of tnsnames.ora. We execute the above command
normally without any error.
However, if we execute the following command:
select * from table_name@remote _connect
oracle returns the following error:
ora-12154 TNS could not resolve the service name
When we change the statement (using 'ATTSERV') with statement
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=192.168.1.1)
(PORT=1521))
(CONNECT_DATA=
(SID=v734)
))
oracle returns the following error:
ora-12543 TNS destination host unreachable.
Which is the problem?. How could we connect these databases? Which are the statements or commands and the methods that we
must use to connect these databases ?
p.s: when we use the above strings to connect two databases in the same domain, that operation is succesfull.
Regards
database name AIXSERV. The other domain is ATTIKOS with IP 192.168.1.x and (remote)database name ATTSERV. We want to
connect these two databases with a database link in oracle but the connection is fail.
We try the following steps:
We create a database link in a local database server with (oracle 8.1.7). The commands that we used is the following:
create database link remote_connect
connect to user1 identified by pass1 ussing ‘ATTSERV’.
The ‘attserv’ is the connection string of tnsnames.ora. We execute the above command
normally without any error.
However, if we execute the following command:
select * from table_name@remote _connect
oracle returns the following error:
ora-12154 TNS could not resolve the service name
When we change the statement (using 'ATTSERV') with statement
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=192.168.1.1)
(PORT=1521))
(CONNECT_DATA=
(SID=v734)
))
oracle returns the following error:
ora-12543 TNS destination host unreachable.
Which is the problem?. How could we connect these databases? Which are the statements or commands and the methods that we
must use to connect these databases ?
p.s: when we use the above strings to connect two databases in the same domain, that operation is succesfull.
Regards