Intended audience
This tutorial on using ASP.NET with Oracle is for
developers who are
unfamiliar with C# or experienced C# developers who are new to Oracle.
It is designed to familiarize you with the basics of how to
perform
data manipulation in Oracle from C#. While security is an important
consideration it is beyond the scope of this tutorial.
Prerequisites
|
|
- Install Microsoft Visual Studio 2008 for
building your ASP.NET application
- Go to the Oracle Technology Network and install
Oracle Database 10g XE. Make sure that you follow the instructions to
enable the HR database. If you accepted the default settings of the
installer
|
the server is in C:\oraclexe. The listener.ora, sqlnet.ora and tnsnames.ora files are in
c:\oraclexe\app\oracle\admin\XE\product\10.2.0\server\NETWORK\ADMIN.
3. Start the Oracle XE database.
4. Go to the Oracle Technology Network and install
Oracle 11g Data Access Components (ODAC) with Oracle Developer Tools
for Visual Studio 11.1.07.20 or later. If you accepted the default
settings of the installer the ODAC is installed in c:\app.
5. Copy listener.ora, sqlnet.ora and tnsnames.ora
from
c:\oraclexe\ app\ oracle\ admin\ XE\ product\ 10.2.0\ server\ NETWORK\ ADMIN to
c:\app\product\11.1.0\client_1\Network\Admin. This will
prevent a TNS-12514: TNS: could not resolve the connect
identifier error from appearing.