时间:2021-07-01 10:21:17 帮助过:5人阅读
private static string ConnStr = @"Data Source = (DESCRIPTION = (ADDRESS_LIST=(ADDRESS= (PROTOCOL = TCP)(HOST =139.199.100.66)(PORT = 1521)))(CONNECT_DATA = (SERVICE_NAME = ORCL)));Persist Security Info=True; User Id = LENOVO_TEST; Password=TEST123456";
之前因为ADDRESS_LIST后面少了一个"=",一直连接不上。
@"Data Source = (DESCRIPTION = (ADDRESS_LIST=(ADDRESS= (PROTOCOL = TCP)
(HOST =)///数据库地址
(PORT = 1521)))///端口号
(CONNECT_DATA =
(SERVICE_NAME = ORCL)));
Persist Security Info=True;
User Id = ;///Oracle数据库用户名
Password=";///密码
vs连接到Oracle数据库的连接字符串
标签:vat desc ice string name ati str password 用户名