日期:2014-05-17 浏览次数:20442 次
1 <add key="oracleCon" value="Data Source=orcl;Persist Security Info=True;User ID=hr;Unicode=True" />
2 <add name="oracleCon" connectionString="Data Source=orcl;Persist Security Info=True;User ID=hr;Unicode=True" providerName="System.Data.OracleClient"/>
3 <add name="oracleCon" connectionString="Data Source=orcl;User ID=HR;Password=hjm880514;" providerName="System.Data.OracleClient"/>
//上述3种方法都不行 都是无法解析!
4<add name="oracleCon" connectionString="Data Source=(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1522)) (CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orcl)));User ID=HR;Password=hjm880514;" providerName="System.Data.OracleClient" />
//这种提示要打开链接,可是我已经打开链接了啊!
<add name="connsb" connectionString="Data Source=orcl;User ID=xxx;Password=xxx"/>