1:下面这段代码会报错 

ORA-12154: TNS: 无法解析指定的连接标识符

 string constring = "Data Source=ss7;User ID=ss7;Password=ss7;";//定义连接数据库的字符串            

                using (OracleConnection conn = new OracleConnection(constring))

                {

                    conn.Open();

                    OracleCommand comm = conn.CreateCommand();

                    comm.CommandText = @"select count(*) from SSS_BSSAP_CELL_CALL_1";

                    Console.WriteLine(comm.ExecuteOracleScalar().ToString());

                }

 

工程的路径包含了() ,程序就开始报错,在其他路径中,就不会报错。

这是Visual studio的一个bug

 

 

 2: 使用.net查询oracle, 使用微软的oracleclient, 查询的数据,如果小数点后面位数过多, 就会报溢出错误, 需要手工截断数据的精度才行.

相关文章:

  • 2022-12-23
  • 2021-10-18
  • 2021-07-14
  • 2021-08-03
  • 2022-12-23
  • 2021-08-24
  • 2021-06-26
  • 2021-06-08
猜你喜欢
  • 2021-07-04
  • 2022-02-02
  • 2021-03-26
  • 2021-07-23
  • 2021-12-13
  • 2022-03-01
  • 2021-08-06
相关资源
相似解决方案