Page 1 of 1

Windows ESocketError NET

Posted: Tue 23 Nov 2004 19:40
by Ricardo - Brazil
I'using delphi 7 on a winxp pro with oracle 8.1.7 on a Win 2003 server.

When I connect TOraSession from design time it is OK, but when I run my program setting torasession propterts user, password, server and connect the below error occurs:

Project App.exe raise exception ESocketError with message 'Windows socket error: No connection could be made because the trget machine actively refused (10061), on API connect.' Process stopped. Use step or run to continue

After this another dialog error is shown, with message:
Project App.exe raise exception EOraError with message 'NET: Service is unavailable'.Process stopped. Use step or run to continue


Follow the Line and statement that the erro occurs:
Datamodule1.OraSession1.Connected := True;
(* my session is a TOraSession Object *)

I could not understand the error, because in design time the Orasession1 connect sucessifull.

I need help ...

Tks

Posted: Thu 25 Nov 2004 12:09
by Paul
This error message can happen if you specify a wrong server name, port number or you work through firewall. Please check connection to Oracle server using SQLPlus on target machine.

TNS Connection OK

Posted: Mon 29 Nov 2004 13:53
by Ricardo - Brazil
The connection with oracle is OK.
I could connect from design-time, change TOraSessio.Connected = True, but I could not connect on runtime, when the error explained on my fisrt post occurs