C# 连接Oracle数据库连接字符串

时间:2022-09-07 07:34:36

c#中连接Oracle数据库时使用的连接字符串:

var connectionString = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)
(HOST=192.168.115.33) (PORT=1521)))(CONNECT_DATA=(SERVICE_NAME= testDemo)));
User Id=oracle_test; Password=oracle";

 

其中Oracle数据库服务器IP:192.168.115.33

ServiceName:testDemo

用户名:oracle_test

密码:oracle