sometimes direct mord in oracle can not connect

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
daizhicun
Posts: 109
Joined: Thu 21 Jan 2010 11:49

sometimes direct mord in oracle can not connect

Post by daizhicun » Fri 18 Feb 2011 01:40

when i use OCI MODE , Connect is OK;

when i use Direct Mode ,Sometiems Connect is not OK;

it shows:
--------------------------------------------------------------------
connect error:NET: Network error (Windows socket error: 向一个无法连接的网络尝试了一个套接字操作。 (10051), on API 'connect')
--------------------------------------------------------------

i want to know how to solve it.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Fri 18 Feb 2011 13:05

Hello,

Please specify what you mean by 'Sometimes'.
Most likely the problem is connected with network, DNS, routing, etc. (http://msdn.microsoft.com/en-us/library ... s.85).aspx)
For example, if you set the Server name as 'name' (not as IP-address) and DNS doesn't work, you'll get this error.

Post Reply