ORA-20001:ORA-02074: 无法在分布式事务处理中 SET NLS

 OracleConnection sqlCon = new OracleConnection(); try { sqlCon.ConnectionString = connection; if (sqlCon.State == ConnectionState.Closed) { sqlCon.Open(); } OracleCommand myCommand = new OracleCommand(); //myCommand.CommandTimeout = 3600; myCommand.CommandText = procedureName; myCommand.Connection = sqlCon; myCommand.CommandType = CommandType.StoredProcedure; foreach (OracleParameter parameter in parameters) myCommand.Parameters.Add(parameter); myCommand.ExecuteNonQuery(); return 1; } catch (Exception ex) { throw ex; } finally { sqlCon.Dispose(); }

 

ORA-20001: Oracle 错误 -20001:fnd_global.set_nls 中检测到 ORA-20001: Oracle 错误 -2074:fnd_global.set_nls.set_parameter('NLS_LANGUAGE','SIMPLIFIED CHINESE') 中检测到 ORA-02074: 无法在分布式事务处理中 SET NLS

解决办法:在数据库连接字符串中添加Workaround Oracle Bug 914652=true

 

在网上找了好几天才找到的,终于解决了我的问题,哦哦……

你可能感兴趣的:(Oracle,Erp)