473,748 Members | 2,594 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to connect ASP.Net with Oracle Database?

How to connect asp.net with Oracle Database?
Where and How to? Thanks very much.
Nov 19 '05 #1
6 25943
Standard:
"Data Source=MyOracle DB;Integrated Security=yes;"
This one works only with Oracle 8i release 3 or later

Specifying username and password:
"Data Source=MyOracle DB;User Id=username;Pas sword=passwd;In tegrated Security=no;"
This one works only with Oracle 8i release 3 or later

Declare the OracleConnectio n:

C#:
using System.Data.Ora cleClient;
OracleConnectio n oOracleConn = new OracleConnectio n();
oOracleConn.Con nectionString = "my connectionstrin g";
oOracleConn.Ope n();

VB.NET:
Imports System.Data.Ora cleClient
Dim oOracleConn As OracleConnectio n = New OracleConnectio n()
oOracleConn.Con nectionString = "my connectionstrin g"
oOracleConn.Ope n()

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"´ï´ï" <mi********@163 .com> wrote in message news:O3******** ******@TK2MSFTN GP09.phx.gbl...
How to connect asp.net with Oracle Database?
Where and How to? Thanks very much.

Nov 19 '05 #2
Thanks very much.
But if i wanna use ODP.Net to connect with ASP.Net?
Is it better then yours?
Then I am beginner.Thank you.

"Juan T. Llibre" <no***********@ nowhere.com> ????
news:#0******** ******@TK2MSFTN GP15.phx.gbl...
Standard:
"Data Source=MyOracle DB;Integrated Security=yes;"
This one works only with Oracle 8i release 3 or later

Specifying username and password:
"Data Source=MyOracle DB;User Id=username;Pas sword=passwd;In tegrated
Security=no;"
This one works only with Oracle 8i release 3 or later

Declare the OracleConnectio n:

C#:
using System.Data.Ora cleClient;
OracleConnectio n oOracleConn = new OracleConnectio n();
oOracleConn.Con nectionString = "my connectionstrin g";
oOracleConn.Ope n();

VB.NET:
Imports System.Data.Ora cleClient
Dim oOracleConn As OracleConnectio n = New OracleConnectio n()
oOracleConn.Con nectionString = "my connectionstrin g"
oOracleConn.Ope n()

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"´ï´ï" <mi********@163 .com> wrote in message
news:O3******** ******@TK2MSFTN GP09.phx.gbl...
How to connect asp.net with Oracle Database?
Where and How to? Thanks very much.

Nov 19 '05 #3
To answer your question I would say "yes", ODP.NET is better for working
with Oracle. The programming model is the same in most tasks and similar in
the rest and it is tuned to Oracle. There are a few instances where
OracleClient is better, due to having to work with both .NET and Java, but
it is generally neglegible. For the newest Oracle database (10g), I do not
believe you can use the OracleClient that ships with Visual Studio as the
Oracle internals have changed.

The code that Juan shared is very close to ODP.NET and you can download
samples of code for ODP.NET from the same site you download ODP.NET:
http://otn.oracle.com

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** **
Think outside the box!
*************** *************** *************** **
"Mikeda" <mi********@163 .com> wrote in message
news:uj******** ******@TK2MSFTN GP15.phx.gbl...
Thanks very much.
But if i wanna use ODP.Net to connect with ASP.Net?
Is it better then yours?
Then I am beginner.Thank you.

"Juan T. Llibre" <no***********@ nowhere.com> ????
news:#0******** ******@TK2MSFTN GP15.phx.gbl...
Standard:
"Data Source=MyOracle DB;Integrated Security=yes;"
This one works only with Oracle 8i release 3 or later

Specifying username and password:
"Data Source=MyOracle DB;User Id=username;Pas sword=passwd;In tegrated
Security=no;"
This one works only with Oracle 8i release 3 or later

Declare the OracleConnectio n:

C#:
using System.Data.Ora cleClient;
OracleConnectio n oOracleConn = new OracleConnectio n();
oOracleConn.Con nectionString = "my connectionstrin g";
oOracleConn.Ope n();

VB.NET:
Imports System.Data.Ora cleClient
Dim oOracleConn As OracleConnectio n = New OracleConnectio n()
oOracleConn.Con nectionString = "my connectionstrin g"
oOracleConn.Ope n()

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"´ï´ï" <mi********@163 .com> wrote in message
news:O3******** ******@TK2MSFTN GP09.phx.gbl...
How to connect asp.net with Oracle Database?
Where and How to? Thanks very much.


Nov 19 '05 #4
re:
But if i wanna use ODP.Net to connect with ASP.Net?
Is it better then yours?
Those *are* the connection strings for the
..NET Framework Data Provider for Oracle (ODP.NET).

You can download it at:
http://www.microsoft.com/downloads/d...displaylang=en

And learn a bit more about it at:
http://www.c-sharpcorner.com/Code/20.../ODP.NET02.asp

You could also use OleDb :

This one's from Microsoft :
"Provider=msdao ra;Data Source=MyOracle DB;User Id=UserName;Pas sword=asdasd;"

The following are from Oracle :

Standard Security:
"Provider=OraOL EDB.Oracle;Data Source=MyOracle DB;User
Id=Username;Pas sword=asdasd;"

Trusted Connection:
"Provider=OraOL EDB.Oracle;Data Source=MyOracle DB;OSAuthent=1; "

Or, you could also use OraDirect : http://www.crlab.com/oranet/

OraDirect .NET supports Oracle 10g, 9i, 8i and 8.0,
including Personal and Lite editions.

Their provider works with .NET Framework 1.0, 1.1, and 2.0.
It will cost you $$$, though. ( $100 to $150 ).


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Mikeda" <mi********@163 .com> wrote in message
news:uj******** ******@TK2MSFTN GP15.phx.gbl... Thanks very much.
But if i wanna use ODP.Net to connect with ASP.Net?
Is it better then yours?
Then I am beginner.Thank you.

"Juan T. Llibre" <no***********@ nowhere.com> ????
news:#0******** ******@TK2MSFTN GP15.phx.gbl...
Standard:
"Data Source=MyOracle DB;Integrated Security=yes;"
This one works only with Oracle 8i release 3 or later

Specifying username and password:
"Data Source=MyOracle DB;User Id=username;Pas sword=passwd;In tegrated
Security=no;"
This one works only with Oracle 8i release 3 or later

Declare the OracleConnectio n:

C#:
using System.Data.Ora cleClient;
OracleConnectio n oOracleConn = new OracleConnectio n();
oOracleConn.Con nectionString = "my connectionstrin g";
oOracleConn.Ope n();

VB.NET:
Imports System.Data.Ora cleClient
Dim oOracleConn As OracleConnectio n = New OracleConnectio n()
oOracleConn.Con nectionString = "my connectionstrin g"
oOracleConn.Ope n()

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"´ï´ï" <mi********@163 .com> wrote in message
news:O3******** ******@TK2MSFTN GP09.phx.gbl...
How to connect asp.net with Oracle Database?
Where and How to? Thanks very much.


Nov 19 '05 #5
Thanks, Cowboy.

Here's some specific URLs for samples :

Simple:
http://www.oracle.com/technology/sam.../odpbasic.html

Advanced:
http://www.oracle.com/technology/sam...et/odpadv.html

XML:
http://www.oracle.com/technology/sam...204/index.html

How-To ( Tutorials ) :
http://www.oracle.com/technology/sam...wto/index.html

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Cowboy (Gregory A. Beamer)" <No************ *@comcast.netNo OSpamM> wrote in
message news:uu******** ******@TK2MSFTN GP12.phx.gbl...
To answer your question I would say "yes", ODP.NET is better for working
with Oracle. The programming model is the same in most tasks and similar
in the rest and it is tuned to Oracle. There are a few instances where
OracleClient is better, due to having to work with both .NET and Java, but
it is generally neglegible. For the newest Oracle database (10g), I do not
believe you can use the OracleClient that ships with Visual Studio as the
Oracle internals have changed.

The code that Juan shared is very close to ODP.NET and you can download
samples of code for ODP.NET from the same site you download ODP.NET:
http://otn.oracle.com

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** **
Think outside the box!
*************** *************** *************** **
"Mikeda" <mi********@163 .com> wrote in message
news:uj******** ******@TK2MSFTN GP15.phx.gbl...
Thanks very much.
But if i wanna use ODP.Net to connect with ASP.Net?
Is it better then yours?
Then I am beginner.Thank you.

"Juan T. Llibre" <no***********@ nowhere.com> ????
news:#0******** ******@TK2MSFTN GP15.phx.gbl...
Standard:
"Data Source=MyOracle DB;Integrated Security=yes;"
This one works only with Oracle 8i release 3 or later

Specifying username and password:
"Data Source=MyOracle DB;User Id=username;Pas sword=passwd;In tegrated
Security=no;"
This one works only with Oracle 8i release 3 or later

Declare the OracleConnectio n:

C#:
using System.Data.Ora cleClient;
OracleConnectio n oOracleConn = new OracleConnectio n();
oOracleConn.Con nectionString = "my connectionstrin g";
oOracleConn.Ope n();

VB.NET:
Imports System.Data.Ora cleClient
Dim oOracleConn As OracleConnectio n = New OracleConnectio n()
oOracleConn.Con nectionString = "my connectionstrin g"
oOracleConn.Ope n()

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"´ï´ï" <mi********@163 .com> wrote in message
news:O3******** ******@TK2MSFTN GP09.phx.gbl...
How to connect asp.net with Oracle Database?
Where and How to? Thanks very much.



Nov 19 '05 #6
Oh?Thanks very much~~I will try later..
"Cowboy (Gregory A. Beamer)" <No************ *@comcast.netNo OSpamM> дÈëÏûÏ¢
news:uu******** ******@TK2MSFTN GP12.phx.gbl...
To answer your question I would say "yes", ODP.NET is better for working
with Oracle. The programming model is the same in most tasks and similar in the rest and it is tuned to Oracle. There are a few instances where
OracleClient is better, due to having to work with both .NET and Java, but
it is generally neglegible. For the newest Oracle database (10g), I do not
believe you can use the OracleClient that ships with Visual Studio as the
Oracle internals have changed.

The code that Juan shared is very close to ODP.NET and you can download
samples of code for ODP.NET from the same site you download ODP.NET:
http://otn.oracle.com

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** **
Think outside the box!
*************** *************** *************** **
"Mikeda" <mi********@163 .com> wrote in message
news:uj******** ******@TK2MSFTN GP15.phx.gbl...
Thanks very much.
But if i wanna use ODP.Net to connect with ASP.Net?
Is it better then yours?
Then I am beginner.Thank you.

"Juan T. Llibre" <no***********@ nowhere.com> ????
news:#0******** ******@TK2MSFTN GP15.phx.gbl...
Standard:
"Data Source=MyOracle DB;Integrated Security=yes;"
This one works only with Oracle 8i release 3 or later

Specifying username and password:
"Data Source=MyOracle DB;User Id=username;Pas sword=passwd;In tegrated
Security=no;"
This one works only with Oracle 8i release 3 or later

Declare the OracleConnectio n:

C#:
using System.Data.Ora cleClient;
OracleConnectio n oOracleConn = new OracleConnectio n();
oOracleConn.Con nectionString = "my connectionstrin g";
oOracleConn.Ope n();

VB.NET:
Imports System.Data.Ora cleClient
Dim oOracleConn As OracleConnectio n = New OracleConnectio n()
oOracleConn.Con nectionString = "my connectionstrin g"
oOracleConn.Ope n()

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"´ï´ï" <mi********@163 .com> wrote in message
news:O3******** ******@TK2MSFTN GP09.phx.gbl...
How to connect asp.net with Oracle Database?
Where and How to? Thanks very much.



Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2772
by: Yanick Quirion | last post by:
Hi all, I'm trying to find a simple code to connect to an Oracle Database (9i) with C under linux. I have a script that read a form from the web and I want to access my Oracle database with this form. I'm looking for something easier to compile. I already found something to connect to an Oracle Database, but it use g++ and not cpp, and the second
2
2116
by: baumann.Pan | last post by:
Dear all , how can I connect to oracle database in C language under linux? thanks in advance
1
15831
by: Hai Ly Hoang \(MT00KSTN\) | last post by:
Hi, I'm an Oracle newbie. I've just created a table in Oracle with CREATE TABLE. Now, in C#, how to connect to database and get my table ? Thanks
0
1957
by: Asheesh | last post by:
Hi, I want to configure client machine with oracle database server thru .Net programming. Can any body tell me how? Actually the scenario is: I am crating .net setup project for complete installation of asp.net application. While setup is running user has to fill oracle server host name, database name, username and password to connect oracle database server. Then setup will configure oracle database server with given information. So...
1
13551
by: renjith.nair | last post by:
Please give me some sample codes to connect oracle database from a java program.
10
6954
by: Reedsp | last post by:
Version: MSAccess 2003 SP2 Explination: I have a database that connects to an oracle database. I have setup an ODBC connection under the System DSN tab in the ODBC Source Administrator. The first time I go to a form that has fields from the oracle table, the "Oracle ODBC Driver Connect" window appears, as it should. Once I type in the password and continue with the database, that window never appears again. If I enter the password in...
3
4535
by: nasirVB | last post by:
I am trying to develop a database management system with oracle. But i dont know coding for the same. I have been using MS Access as database. But i want o switch the database to Oracle. Please help me out. Nasir Ahmed
6
4534
by: mktselvan | last post by:
hi here we have oracle financial system (dbtier, applicatin tier) @ sun solaris sparc from windows client, application tier ip address is working (pinging from remote area) but dbtier doesn't. as well as we can't login using telnet also
3
6445
by: techquest | last post by:
Hi, I want to connect into oracle database and export the table data into a flat file using UNIX shell scripts. I cant use other GUI tools to do this, as the dataload will be in millions. hence if i try to export from toad/sqlplus its hanging. And also i need to some validation using UNIX. So please give me some tip to write a script which does this operation. Req: 1) Connect oracle 2) Select * from employee 3) Write into some flat...
0
2736
by: akshalika | last post by:
I am new to Biztalk. In my project we need to connect oracle database and insert data into oracle table using BizTalk project. I use WCF Adapter pack(SP2). I create biztalk project then using Consume Adapter Service Add-in create schemas to insert data into oracle database and tow-way send port binding file Then create orchestration and logical receive port send port, Request-response port then after correctly connect those port with message...
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9562
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9386
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.