Select to view content in your preferred language

Error:The type initializer for 'Oracle.DataAccess.Client.OracleConnection' thrown

1473
2
04-02-2014 09:29 AM
LakshmananVenkatesan
Frequent Contributor
Hi

I am developing custom geoprocessing tool (class-library project) on ArcGIS 10.2. This project uses Oracle.DatAccess from C:\Oracle\product\10.2.0\client_32\ODP.NET\bin\1.x . This is a simple tool which queries oracle 10g database and returns a distinct records from a table. This tool is working fine from tool box but when this tool is published in REST, it throws Oracle type initialize exception on line

Connection = new OracleConnection(constr);


  1. ArcGIS server 10.2, Visual Studio 2012.

  2. Server: Windows 2012 64bit OS

  3. Oracle client : installed both oracle 32 and oracle 64bit (C:\oracle\product\10.2.0\Client_32, C:\oracle\product\10.2.0\Client_64)

  4. PATH: c:\oracle\product\10.2.0\client_64\bin;c:\oracle\product\10.2.0\client_32\bin;

Any clues on this?
Tags (2)
0 Kudos
2 Replies
MarcoBoeringa
MVP Regular Contributor
In case you wish to try the Oracle Instant Client, instead of Oracle Client, to which Vince referred in the other thread, Richard Watson provided some install instructions in this post:

http://forums.arcgis.com/threads/74635-Is-it-necessary-to-install-the-%E2%80%9CMicrosoft-SQL-server%...
0 Kudos
LakshmananVenkatesan
Frequent Contributor
Marco

Can you explain difference between Oracle instant client and regular oracle client software which comes with Oracle installer?.
As said, I have installed oracle client (64 and 32bit) and set a PATH variable as ESRI specified. Still am struggling to get the result.
0 Kudos