How do I use Oracle from .NET?

前端 未结 5 938
星月不相逢
星月不相逢 2021-01-30 11:45

Unfortunately, I\'m trying to use Oracle from .NET and it\'s like going to back to 1997. Explaining things properly is a sign of weakness and the registry and environment variab

5条回答
  •  不思量自难忘°
    2021-01-30 11:53

    First off, +1 for your unadulterated love of Oracle, and realizing that they are the best company with the best products! ;)


    Yeah the download and install process is ridiculous. I usually can't even find the right client download on their site, and the Oracle Universal Product Installer thing is terrible.


    Sometimes you will need a copy of OraOps11w.dll in your \bin directory. Sometimes not. I've never figured out when its needed and when it isn't, but I think that if your referenced Oracle.DataAccess.dll isn't exactly the same version as the installed Oracle client, then you need the OraOps11w.dll.


    Can you explain what you are trying to do in your config file with DllPath? The Oracle install should have registered just about everything it needs in the machine.config for your .NET Runtime. It has been a while since I set up ODP.NET, but I don't remember there being much to put in the app.config, other than the connection string.

提交回复
热议问题