IO Error: The Network Adapter could not establish the connection

Either: The database isn’t running You got the URL wrong There is a firewall in the way. (This strange error message is produced by Oracle’s JDBC driver when it can’t connect to the database server. ‘Network adapter’ appears to refer to some component of their code, which isn’t very useful. Real network adapters (NICs) don’t … Read more

How to connect to Oracle 11 database from . net

I know 17 ways to connect to an Oracle Database from a .NET application. ODBC with driver from Oracle var connectString = “Driver={Oracle in OraClient11g_home1};Uid=scott;Pwd=secret;DBQ=orcl1”; var con = new System.Data.Odbc.OdbcConnection(connectString); con.Open(); (exact driver name Oracle in OraClient11g_home1 depends on installed Oracle version) ODBC with driver from Microsoft (only for 32bit, deprecated, does not work anymore … Read more

How to uninstall / completely remove Oracle 11g (client)?

Assuming a Windows installation, do please refer to this: http://www.oracle-base.com/articles/misc/ManualOracleUninstall.php Uninstall all Oracle components using the Oracle Universal Installer (OUI). Run regedit.exe and delete the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE key. This contains registry entires for all Oracle products. Delete any references to Oracle services left behind in the following part of the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Ora* It should be pretty … Read more

BadImageFormatException. This will occur when running in 64 bit mode with the 32 bit Oracle client components installed

One solution is to install both x86 (32-bit) and x64 Oracle Clients on your machine, then it does not matter on which architecture your application is running. Here an instruction to install x86 and x64 Oracle client on one machine: Assumptions: Oracle Home is called OraClient11g_home1, Client Version is 11gR2 Optionally remove any installed Oracle … Read more