Oracle 10G Installation on Windows - asp.net

I have a database: Oracle SQL Developer 3.2.20.9
an asp.net web application running locally on a pc with Windows 7 enterprise 64 bit, and to developed it I used Visual Studio 2013.
Now I should connect the application with the db so I' m trying to install:
Oracle 10g ODAC and Oracle Developer Tools for Visual Studio .NET
I get this Error:
"Abnormal program termination. an internal error has occured. Please provide the following files to Oracle Support:
Unknown
Unknown
Unknown"
Could I connect the webapp in other ways?
When I go to Server Explorer in Visual Studio and I choose connect to database -> add connection -> Oracle database -> .NET framework Data Provider for Oracle
I get:
"This provider is deprecated and should not be used. Instead, download Oracle Developer Tools for visual Studio for comprehensive integration with Oracle databases."

Oracle supports connections back two versions. You should try installing the ODAC client for 11g as that will connect to a version 10 database and supports windows 7.
Seeing as SQL developer is free why not get the latest version 4.02 here
Be sure to get an ODAC version that matches the bitness of the database, 32 bit or 64 bit. You can check this by logging onto the machine with Run > cmd > sqlplus > connect as your user/your password. If the header that is returned does not say 64 bit then the database is a 32 bit install and you need ODAC to match that.
And seeing as connecting to Oracle is popular question a good troubleshooting routine is
connect from sqlplus on the database
connect with sql developer from your client pc
then try connecting through Visual Studio.

Related

Development and Production environment have different behaviour with the same setup

I've developed a web application with asp.net/vb.net using Visual Studio 2012. I've this application locally on my computer and on a server where is accessible from the web. Now, i've just a problem with the ODBC.
In my local version i get this error when i try to access a databace with an odbc:
The specified DSN contains an architecture mismatch between the Driver and Application
And it's ok, because visual studio it's a 32bit application and i don't have the 32bit odbc.
But, in my production environment i don't have the 32bit odbc too but i don't get the error and everything works good.
I really don't understand why.
Someone can help me?
Every Windows x64 architecture has both 32 and 64 bit ODBC. You can manage the ODBC for 64 bit in [Unit]:\Windows\System32\odbcad32.exe and for 32 bit in [Unit]:\Windows\SysWOW64\odbcad32.exe.
Try to create the DSN in the correct ODBC depending on your application based platform. You can check it on Visual Studio > Your Application > Properties > Compile tab > Platform

The provider is not compatible with the version of Oracle client ODP.NET

I landed in a tricky situation. I am working on a legacy .NET application that used ADODB (only 32bit dlls available) in conjunction with Oracle.DataAccess (32/64 bit available) which was running earlier on 2003 server with some version of Oracle (I am not sure on the version number).
Now with minimal changes I need to port this to work on 2012 server (64bit) and Oracle 11g with .NET 4.0. When I use the 64bit of Oracle client, the system is failing at ADODB. When I am using 32bit Oracle client, it says The provider is not compatible with the version of Oracle client.
The environment / tools used are:
Oracle 11g, ODP.NET, ADODB, Windows 2012 (64bit), .NET 4.0
Is there a way to solve this riddle?
Edit :
I tried with System.Data.OracleClient instead of ODP.NET I got the following exception
System.InvalidOperationException: Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.

Install Oracle Database Extensions for .NET into VS2013

How to install Oracle Database Extensions for .NET into VS2013.
32-bit Oracle Data Access Components (ODAC)
with Oracle Developer Tools for Visual Studio
Everytime I run this installer, it is always exclude Oracle Database Extensions for .NET. There is a reminder of for upgrade only in the description of the package installer.
Oracle Database Extensions for .NET 4 12.1.0.1.0 -- for upgrade only
Oracle Database Extensions for .NET 2.0 12.1.0.1.0 -- for upgrade only
So where should I get the installer for Oracle Database Extensions? Currently I using VS2013 Professional and Oracle database server 11g 64 bits.
I need that because of Developing and Deploying a .NET Stored Procedure using Oracle Deployment Wizard.
Developing and Deploying a .NET Stored Procedure
Inside this website, you can see the tutorial for VS2010 version.
Additional: I have to use Oracle 12c client 32bits because of VS2013 and Entity Framework.
Additional: I have ttied 64 bits, but my VS2013 still doesn't have Deploy option
Well, this is guesswork:
Try installing Oracle 10g ODAC and Oracle Developer Tools for Visual Studio .NET (very bottom of the downloads page) first, and then install the latest for upgrade only distribution.
Okay, here's an excerpt from Oracle Database Extensions for .NET:
This product is included with the Oracle Database on Windows installation. Further upgrades are installed as part of the Oracle Database Access Components (ODAC) releases, however Oracle Database Extensions for .NET must first be installed and configured before it can be upgraded.
Also, I found Oracle® Database Extensions for .NET Developer's Guide 12c Release 1 (12.1) for Microsoft Windows. In it's Installation and Configuration > Installation section:
Before the first use of Oracle Database Extensions for .NET, do the following:
Install Oracle Database 12c and either allow the installer to create the database for you, or install the database software only and use Database Configuration Assistant to create a database afterwards.
After installation and database creation, execute the following to enable Oracle Database Extensions for .NET.
chopt enable ode_net
Execute the following to create the Oracle Database Extensions for .NET windows service.
oraclrctl -new
Bottom line: You have to install Oracle Database 12c to enjoy Oracle Database Extensions for .NET. It is meant to be a service running along with the database server, not in the client.

Cannot get ADO connection working on a classic ASP website running in IIS Express on Windows 7 64 bit

I have a legacy classic ASP website that I need to do some maintenance work on. My development machine is running Windows 7 64 bit, Visual Studio 2012 and IIS Express 8.0.
The ASP app is backed by a Microsoft Access database.
The website runs fine until it tries to establish a connection to the database, where it fails with the following:
0x800a0e7a - ADODB.Connection: Provider cannot be found. It may not be
properly installed.
If the ASP process is running as 64-bit and it is trying to use the Jet database engine then that won't work because there is no 64-bit version of Jet. If that is the case then you can either
install the 64-bit version of the Access Database Engine (ACE), available here, and tweak the connection parameters as required, or
get the ASP process to run as 32-bit
I had the same problem you mention in a follow up comment.
I tried to install the 64 bit version, but I could not because I have
Office 2010 32 bit installed.
You can force the 64 bit version of the Access Database Engine (ACE) from here to install with the 'passive' switch:
AccessDatabaseEngine_x64.exe /passive

Unable to connect the Oracle server on 64 bit machine through ASP.NET on 64 bit machine

I am new to Oracle..and i am working on a ASP.NET Application whose backend is Oracle 11g.
I have 2 Machines for development. One is the Database Server(Windows Server 2008 R2) and second is the Application server(Windows 7).
I have installed a Oracle server 11g standard edition on Database server machine.
I have installed the Visual Studio 2010 and oracle 11g client on the Application server.
Now i am able to connect the oracle database server through the Application server using Toad.
But when i try to connect the database server through the ASP.NET 4.0 Application, then i am unable to connect the oracle and get the following error...
Attempt to load Oracle client libraries threw BadImageFormatException.
This problem will occur when running in 64 bit mode with the 32 bit
Oracle client components installed.
I have tried to set the Target Platform to x64 , but still it didnt work...
Any Help/Suggestions will be appreciated....
Thanks in Advance.....
The issue seems to be exactly what it says. Looks like the Oracle Client you have installed is a 32-bit Oracle client. Download and install the 64-bit version of Oracle client.

Resources