如何将oracle9g数据库连接到C#Web应用程序 [英] how to connect oracle9g database to c# web application

查看:126
本文介绍了如何将oracle9g数据库连接到C#Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,
我必须将oracle数据库连接到C#Web应用程序.但是我无法连接并且出现错误
我共享我的Oracle数据库信息.
用户名:门户网站
密码:门户网站
连接名称:主机
港口:1836
服务名称:充值

我共享我的数据库连接代码.

字符串str =";
oracleconnection con =新的oracleconnection(str);

我制作了连接代码,但未连接,并收到错误消息"TNS:无法解析在System.Data.OracleClient.OracleException中指定的连接标识符."

任何机构都可以通过上述oracle数据库信息为我提供"str" c#连接字符串代码.

问候,
Ravi

Dear Sir,
I have to connect oracle database to C# web application.but i unable to connect and i got error
i share my oracle database information.
username : portal
password : portal
connection name : host
port : 1836
service name : recharge

I share my database connection code.

string str="";
oracleconnection con = new oracleconnection(str);

I make the connection code , but its not connect and got error "TNS:could not resolve the connect identifier specified at System.Data.OracleClient.OracleException."

any body give me "str" c# connection string code with above oracle database information.

Regards,
Ravi

推荐答案

有关连接字符串的问题,请访问

ADO连接字符串 [ http://www.startvbdotnet.com/ado/oracle.aspx [ http://www.codeguru.com/csharp/csharp/cs_network/database/article.php/c8477__2/Connecting-to-an-Oracle-Database-Using-ASPNETmdashA-逐步指南. htm [
For Connection Strings issue visit

ADO Connection Strings[^]


and For Oracle Connectivity


http://www.startvbdotnet.com/ado/oracle.aspx[^]


Very good step by step guide

http://www.codeguru.com/csharp/csharp/cs_network/database/article.php/c8477__2/Connecting-to-an-Oracle-Database-Using-ASPNETmdashA-Step-by-Step-Tutorial.htm[^]


^ ] ,从此处开始:-)
Connection strings for Oracle[^], start there :-)


类似的帖子,您会在

这篇关于如何将oracle9g数据库连接到C#Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆