Saturday, 15 September 2012

Unity Oracle connection DllNotFoundException: oci -


So basically I was trying to use Unity and an Oracle database within the development of mono. I need to copy DLLs from System.Data and System.Data.OracleClient below: C: \ Program Files (x86) \ Integration \ Editor \ Data \ Mono \ lib \ Mono \ Project's Assets folder in 2.0,

Here is my C # code:

  using UnityGen; Using System.Collections; Using System.Collections.Generic; Using System.Data; Using System.Data.OracleClient; Public class OracleConn: MonoBehavior {public string connectStr = "SomeConnectionString"; String TBName = "CZRK"; & Lt; String & gt; ListOfID = New list & lt; String & gt; (); // ID list & lt; String & gt; ListOfName = New list & lt; String & gt; (); // NAME personal string content; Zero Start () {OracleConnection Conn = New OracleConnection (connectStr); Conn.Open (); // error that causes the error}}  

error then DllNotFoundException: oCI pop out when executing conn.Open ()

Full error log:

  DllNotFoundException: OCI System.Data.OracleClient.Oci.OciCalls.OCIEnvCreate (System.IntPtr & amp; envhpp, OciEnvironmentMode Mode, IntPtr ctxp, IntPtr malocfp, IntPtr Ralocoff, IntPtr mfreep, Int32 xtramem_sz, IntPtr usrmempp) System.Data.OracleClient.Oci.OciEnvironmentHandle..ctor (OciEnvironmentMode mode) System.Data.OracleClient.Oci.OciGlue.CreateConnection (OracleConnectionInfo conInfo) System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection (OracleConnectionInfo information) System.Data.OracleClient OracleConnectionPool .CreateConnection () System.Data.OracleClient.OracleConnectionPool.GetConnec Tion () System.Data.OracleClient.OracleConnection.Open () (Cover with remote-invocation) System.Data.OracleClient.OracleConnection: Open () OracleConn.Start () (at Asset / Oracle Con. )  

5.5.0 F3 also tried to make this error 11G hits I suspect That the current set of drivers increases to 10G, so I went to the third party. Note that I was working quickly, I do not work for them.


No comments:

Post a Comment