How to set proper path to TNSNAMES file in C# application?

后端 未结 3 748
忘掉有多难
忘掉有多难 2021-01-06 01:52

I have a program in C# that use ODP.NET dlls:

oci.dll, ociw32.dll, Oracle.DataAccess.dll,
orannzsbb11.dll, oraocci11.dll, oraociicus11.dll,
OraOps11w.dll. 
<         


        
3条回答
  •  孤独总比滥情好
    2021-01-06 02:37

    You don't need to install ODP.NET (or for that matter the Oracle Client) as you seem to have the required DLLs for a local distributable inline oracle client. In your case it's possible to have the TNSNAMES.ORA file located in the same folder as your executable and your specialised "inline oracle client" will pick it up from there. Otherwise the oracle client local to your application will try to pick it up from any client installed on the machine.

提交回复
热议问题