try
             {
                 string connStr = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.110.110)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ZXITORCL)));Persist Security Info=True;User ID=tj122webnew;Password=tj122webnew;";
                 using (var conn = new OracleConnection(connStr))
                 {
                     conn.Open();
                     Response.Write("连接成功!");
                 }
             }
             catch (OracleException ex)
             {
                 throw new Exception(ex.Message);
             }


注意:需要下载Oracle.ManagedDataAccess.dll动态库,同时该动态库运行在.net 4.0中

相关文章:

  • 2021-11-19
  • 2021-08-30
  • 2022-02-07
  • 2021-10-14
  • 2021-10-17
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-28
  • 2021-11-24
  • 2022-01-26
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案