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=";///密码
原文地址:https://www.cnblogs.com/yourSixUncle/p/9879937.html
时间: 2024-10-10 11:16:14