Informix 11.50 Connection Error ERROR [08001] [IBM] SQL30081N using Informix client sdk 3.5 - .net-4.0

I have a Windows server 2008 R2 64 bit with a VMware instance of Informix Dynmic Server 11.50 virtual appliance 32bit running.
Using the default database server provided in the virtual appliance i have created a database and a table inside it.
I installed the Informix Client SDK 3.5 and the informix data server provider Drivers on the windows server.
I setup the server connection on the windows server using setnet tool.
I tested the connection with the connect test demo tool of the SDK and the query executed successfully.
Now when I am testing the .Net provider driver by running the testconn.40_32.exe with the following connection String:
testconn40_32.exe -dtc "Database=safdata; Server=192.168.154.128:9088; User ID=root; Password=root"
I get following error:
Unable to open socket to server:
ERROR [08001] [IBM] SQL30081N A communication error has been detected. Communic
ation protocol being used: "TCP/IP". Communication API being used: "SOCKETS".
Location where the error was detected: "192.168.154.128". Communication functio
n detecting the error: "recv". Protocol specific error code(s): "", "", "0".
SQLSTATE=08001

Have you tried both tests from the same machine? If not then maybe you cannot go through firewall or other network device.
If you run tests on the same machine the server works then instead of 192.168.154.128 use localhost or 127.0.0.1. You can also check if Informix listens on port 9088 using netstat command or tool like TCView or ProcessExplorer.

I uninstalled the client SDK and all other drivers.. re-installed only the client SDK and it worked. The client drivers were conflicting with other versions of the driver I had installed.

Related

ORA-12543: TNS:destination host unreachable

I'm trying to study query optimization using SQL command line. When I'm about to connect to the database, I got this error. It's my first time to use the SQL command line. Ive installed Oracle database 11g express edition. The database I'm trying to access is also installed on my computer. I have a proxy network settings in my computer, which I already removed and the same error occurred. I'm using a desktop PC with W7 - 64bit OS. I'm using a wireless USB adapter to connect to the internet. I tried tnsping on my machine and returned the following lines:
Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTO
COL=TCP)(HOST=192.168.0.20)(PORT=1521)))
OK (70 msec)
Also can you have a check to see if you have set up a loopback adapter if your os is windows. Check and follow this link
http://www.oracledistilled.com/windows/configuring-the-loopback-adapter-on-microsoft-windows/

Troubleshoot Connecting to the SQL Server Database Engine

I'm trying to connect to SQL Server from my .NET application.
I tried it on my pc and one other pc with already installed sql server.
I needed to test my app and I started virtual machines (windows 7 and 8.1).
I am constantly getting error:
"A network-related or instance-specific error occurred while
establishing a connection to SQL Server. The server was not found or
was not accessible. Verify that the instance name is correct and that
SQL Server is configured to allow remote connections. (provider: Named
Pipes Provider, error: 40 - Could not open a connection to SQL
Server)"
I tried everything that i found on internet that might help.
Nothing works for me.
Im using VirtualBox for virtual machines.
Is there might problem with that or even problem is because I'm trying to do it on VM. How can I resolve this?
Check this is this helps go to run -> sql server configuration manager then check sql server service are running and then client protocol enabled

Cannot connect to localhost SQL Server 2005

I just installed SQL Server 2005 SP2 on Vista and am attempting to connect to my object explorer in Management Studio. When doing so I get the following error:
Cannot connect to localhost.
A network-related or instance-specific
error occurred while establishing a
connection to SQL Server. The server
was not found or was not accessible.
Verify that the instance name is
correct and that SQL Server is
configured to allow remote
connections. (provider: Named Pipes
Provider, error: 40 - Could not open a
connection to SQL Server) (Microsoft
SQL Server, Error: 2)
I am using the following credentials:
Server type: Database Engine; Server name: localhost; Authentication: Windows Authentication
I am just using SQL Server for a local application. I have tried using 127.0.0.1, my comp name, "." and localhost. I have searched and tried every relevant help topic I could find. I have reinstalled, turned on IIS (just a guess), updated to latest service packs all around, run as admin, etc.
What am I missing here?
JJ
Did you run the User Provisioning Tool for Vista? See KB929907 You may be unable to perform most database operations after you log on to an instance of SQL Server 2005 Express Edition Service Pack 1 on a Windows Vista-based computer
Try using (local)
Also if you have an instance name you can try myComputerName\instanceName
You're missing the instance name. You don't just connect to localhost, but to any of the following (assuming that your machine is called dago and your instance sqlexpress):
localhost\sqlexpress
dago\sqlexpress
.\sqlexpress
I am not using express. It turns out I had a "client" version of SQL Server installed. I didn't even know there was a client version. I ran the full install and added the sa user as Windows Authentication wasn't working for me (next goal). I am connecting via "localhost" (just localhost), so I don't fully understand what the instance suggestion was all about.
Basically the solution was to get the full version installed. My bad. Easy fix.
JJ

Connection to SQL Server 2008 through .NET

I installed SQL Server 2008 on my machine which is (Windows XP SP3).
Also I have Visual Studio 2008 installed in another machine on which there is a .net application. Now while I am trying to connect to the SQL Server from my .NET application.
I am unable to do so. I get an error message :
The client was unable to establish a
connection because of an error during
connection initialization process
before login. Possible causes include
the following: the client tried to
connect to an unsupported version of
SQL Server; the server was too busy to
accept new connections; or there was a
resource limitation (insufficient
memory or maximum allowed connections)
on the server. (provider: Named Pipes
Provider, error: 0 - No process is on
the other end of the pipe.)
Is it because of the client version being 2005 (which gets installed by default with Visual Studio 2008) and SQL Server being 2008?
provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.
Do you actually have named pipes enabled for your SQL Server?

Windows 2008 x64 - WCF IIS - OracleException ORA-12154: TNS:could not resolve the connect identifier specified

I have WCF service is hosted in IIS on a Windows 2008 x64 machine. This WCF service needs to access an Oracle database but when it tries to do so it encounters an OracleException with the following error message:
ORA-12154: TNS:could not resolve the connect identifier specified
I tried to test the connection to the Oracle database using a Universal Data Link (UDL) file and that works fine. May I assume that the Oracle client is correctly installed on my Windows 2009 server ? If so, what else could be the problem ?
Try using a TNSPING to your oracle server, that will tell you if the connection can be established.
Also check if you have multiple Oracle Clients installed on that machine.
Check your tnsnames file. More description of that error here.