![]() The following is the sample of how to create TNS entries. The best thing you can do is declare the TNS setting in the code itself to prevent such errors. This is quite confusing and irritating as well. This error usually occurs when the code doesn’t find the specified settings. ORA-12154: TNS: could not resolve the connect identifier specified Go to the web.config file and you can see the following code.Īnd you can also see a folder name, bin, that has already been created in the Solution Explorer.įirst you need to be familiar with TNS entries, or else you might encounter the following error: How would I know if the reference has been added or not? Good Question! ![]() Select the above mentioned files and click OKĬool, now the references have been added to the project.Once you have installed ODAC, you must look for the following assembly files. Install Oracle Data Access Component (ODAC).Oracle database 9.2 or higher or Oracle Database XE.Microsoft Visual Studio 2008 or higher (I’ll be using Visual Studio 2012).This article will focus more on elaborating how a connection can be made and what all the issues are that one can encounter and of course how to tackle them. In this article I’ll discuss how to set up a connection between an Oracle database and the. Net framework, it’s a software framework developed by the software giant Microsoft (we all know this), it includes a large class library known as the Framework Class Library (FCL) and provides language interoperability across several programming languages. And on the other hand if we talk about the. We all understand that Oracle is the most widely used database system available in the market. This article and C# code sample explains how to connect to an Oracle database in C# and.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |