Oracle connectivity with ASP.Net

Posted on 2005-04-10
Medium Priority
Last Modified: 2013-11-25
Hi All,
 I want to connect ASP.Net with Oracle 8...i have installed Microsoft .Net Oracle Cleint..
i got this code from the Net

Imports System.Data.OracleClient
Dim oOracleConn As OracleConnection = New OracleConnection()
oOracleConn.ConnectionString = "Data Source=Oracle8i;" & _
                               "Integrated Security=SSPI";

without using DSN, wht will be my connection string...

Meenakshi Dhar

Question by:MeenakshiDhar
  • 4
  • 2
LVL 52

Expert Comment

by:Carl Tawn
ID: 13750799
It depends on whether you are using Windows authentication or not.

But basically:

    oOracleConn.ConnectionString = "Data Source=ListenerServiceName;User ID=AnOracleUser;Password=AnOraclePassword;"

When you installed the Oracle client tools you should also have set up a Naming Service to reference your actual Oracle database. It is the name you specify in the naming service that goes in the "DataSource" parameter.

Hope this helps.

Expert Comment

ID: 13751728

"Driver={Microsoft ODBC for Oracle};Server=OracleServer.world;Uid=Username;Pwd=asdasd;"

"Provider=msdaora;Data Source=MyOracleDB;User Id=UserName;Password=asdasd;"

Hope this helps.

LVL 52

Expert Comment

by:Carl Tawn
ID: 13751856
You don't need the "Provider" or "Driver" parameters if you are using the OracleConnection object.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 13752035
well, how to specify the naming service...since i don't have nay idea abt Oracle...
LVL 52

Expert Comment

by:Carl Tawn
ID: 13752066
If you have installed client tools then you should have an option on the Start Menu somewhere called "Net Manager"

Author Comment

ID: 13761146
well, i got this error...

"System.Data.OracleClient requires Oracle client software version 8.1.7 or greater. "

i have oracle 8 installed...do i need to install oracle 8i...
LVL 52

Accepted Solution

Carl Tawn earned 200 total points
ID: 13761176
You need to install the client tools, which are seperate to the actual database itself.

Theres a link to the 9i Client Tools here: http://www.oracle.com/technology/software/products/oracle9i/index.html

Not sure if this will also work with an 8i install, but Oracle don't seem to have the 8i client tools for download anymore.

You may already have the client tools on CD somewhere with your Oracle discs.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question