I am building C# Console Application to connect with database and do simple query.
But when I debug program, I get this error:
The type or namespace
Agreed you need to reference :
Oracle.DataAccess.dll
You may need to be careful that you have the right Oracle client installed - if you have the 32bit one then you may need to force your app into 32 bit mode.
For distribution you may also want to include all the dependencies in your BIN folder - for 32bit that would look like :
In the install location of the pack you downloaded there is
Oracle.DataAccess.dll
which you should reference. Here is a guide doing exactly that.