Quick question. I have a school assignment for which I am given connection information for an Oracle Server including the server URL, port number, login ID, password, SID, and the server address. We have complete freedom to use whatever language we want and I chose C#. I was wondering if someone could recommend what library to use to connect to the database server and query it. I tried to search on Google for this information but all of the existing articles seem to be either using an deprecated library that is no longer available in Visual Studio 2012/.NET 4.5 or require an Oracle library that requires a mind-numbingly complex procedure to install at first glance. I was hoping someone could recommend a simple-to-install library with a small footprint that I could use to query this oracle database server using the given connection information. Bonus points if you can link an article with example code.
So I downloaded and installed ODP.net (added the installation directory and the bin directory to the PATH environment variable and everything) and for some reason Visual Studio does not show it as a reference in the list of references. I tried to circumvent this by simply adding the path of the dll as a reference (in my case: C:\Tools\Oracle...\Oracle.DataAccess.dll) and at first everything was fine. Even intellisense was seeing the library's classes and stuff, but then when I actually tried to run the code it said:
Could not load file or assembly 'Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Do you know what either one of those problems could be caused by?