登录Oracle数据库
本文关键字:数据库 Oracle 登录 | 更新日期: 2023-09-27 18:12:13
我必须用特殊字符包围用户id或密码吗?还是像这样工作**:**
con.ConnectionString = "User Id=uid;Password=pSw;Data Source=(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1234)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = db)))";
如果我必须使用转义序列的特殊字符?
必须是这样的:con.ConnectionString = "USER ID=uid;PASSWORD=pSw;Data Source=(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1234)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = db)))";