You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having issues with this package. When Dapper tries to open connection (or I try to open it manually in debug mode), Visual Studio 2017 (under Windows 10) fires this exception:
OracleException: Could not allocate the Oracle environment.
System.Data.OracleClient.Oci.OciGlue.CreateConnection(OracleConnectionInfo conInfo)
System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection(OracleConnectionInfo info)
System.Data.OracleClient.OracleConnectionPool.GetConnection()
System.Data.OracleClient.OracleConnection.Open()
Dapper.SqlMapper+<QueryImpl>d__136.MoveNext() in SqlMapper.cs
System.Collections.Generic.List.AddEnumerable(IEnumerable<T> enumerable)
System.Linq.Enumerable.ToList<TSource>(IEnumerable<TSource> source)
So it seems CreateConnection method is firing an error.
Oracle client 12c is already installed here, other clients and software can connect to Oracle without any issues.
Not sure if this is related to environment variables. I have set all known oracle variables (TNS_ADMIN, ORACLE_HOME, ORACLE_BASE). I also had run Visual Studio as administrator but the exception keeps showing up.
The oracle platform seems to be really old and disheartening. 😞
The text was updated successfully, but these errors were encountered:
This tutorial is in Portuguese because I am Brazilian. In this tutorial I am not using Dapper, but in my actual application I have used this configuration along with Dapper and it worked very well.
We must define the environment variables to reference the Oracle Client .DLL. In the example below the Oracle Instant Client folder is located in "C: \ instantclient_12_2".
I am having issues with this package. When Dapper tries to open connection (or I try to open it manually in debug mode), Visual Studio 2017 (under Windows 10) fires this exception:
So it seems CreateConnection method is firing an error.
Connection string:
Oracle client 12c is already installed here, other clients and software can connect to Oracle without any issues.
Not sure if this is related to environment variables. I have set all known oracle variables (TNS_ADMIN, ORACLE_HOME, ORACLE_BASE). I also had run Visual Studio as administrator but the exception keeps showing up.
The oracle platform seems to be really old and disheartening. 😞
The text was updated successfully, but these errors were encountered: