C#2005如何连接ORACLE 9I?(50分)

  • 主题发起人 Sdelphi_fu
  • 开始时间
S

Sdelphi_fu

Unregistered / Unconfirmed
GUEST, unregistred user!
C#2005如何连接ORACLE 9I?
高手们请指点一下,多谢!
我在接数据库中没有连接ORACLE的选项,只有MS SQL SERVER和ACCESS。
 
Standard security
This connection string uses a provider from M$
Provider=msdaora;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;
Trusted connection
Provider=msdaora;Data Source=MyOracleDB;Persist Security Info=False;Integrated Security=Yes;
Standard Security
This connection string uses a provider from Oracle.
Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;

new 一个OleDbConnection("上边的某个连接字符串")!就成了!
 
请本机安装oracle客户端,并配置相应的服务。
 
1、连接字符串 string ConnectionString ……
2、创建连接对象OracleConnection connection
3、connection.open();
这就连上了
 

Similar threads

S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
962
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
顶部