UniDAC oracle connection at DelphiXE (TNS/Direct) problem
Posted: Tue 14 Dec 2010 11:58
Hello, I am experiensing problems connecting to unidac oracle at DelphiXE under Windows7 x64. I am active subscriber to UniDAC and I have installed the latest component update given at 08-DEC-2010. The oracle version is 10.1.0. However other PCs run my program and connect (at least with the direct connection executable I produce). Mine doesn't (maybe because the laptop I am working in is not at the domain of the company?).
I have SQL Navigator installed connecting fine at oracle through TNS, but under UniDAC I cannot connect.
If I try to connect through TNS I get the error:
ORA-12154: TNS:could not resolve the connect identifier specified
If I try to connect directly I get the error:
NET: Network error (Windows socket error: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied (10057), on API 'send').
------------
I have to make clear that sql navigator connecting at the same TNS connects without any problem.
My tnsnames.ora contains
SRS2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SRS2)
)
)
At the connection editor (for TNS Connection) I give
Provider: Oracle
username: srs2
password: ****** (the password)
server: SRS2
---------------------------------------------
Similarly if I try the direct connection, I set at the options tab of the connection editor "Direct = True" and at the connection editor I change the "Server" to
192.168.0.100:1521:SRS2
----------------------------------------------
Both connections fail.
What am I doing wrong given that on the same PC the SQL Navigator connects through TNS perfectly fine?
I have SQL Navigator installed connecting fine at oracle through TNS, but under UniDAC I cannot connect.
If I try to connect through TNS I get the error:
ORA-12154: TNS:could not resolve the connect identifier specified
If I try to connect directly I get the error:
NET: Network error (Windows socket error: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied (10057), on API 'send').
------------
I have to make clear that sql navigator connecting at the same TNS connects without any problem.
My tnsnames.ora contains
SRS2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SRS2)
)
)
At the connection editor (for TNS Connection) I give
Provider: Oracle
username: srs2
password: ****** (the password)
server: SRS2
---------------------------------------------
Similarly if I try the direct connection, I set at the options tab of the connection editor "Direct = True" and at the connection editor I change the "Server" to
192.168.0.100:1521:SRS2
----------------------------------------------
Both connections fail.
What am I doing wrong given that on the same PC the SQL Navigator connects through TNS perfectly fine?