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; The catch (Exception ex) {throw ex;} finally {sqlcon.dispose ();}
Ora-20001:oracle error detected in ora-20001:oracle error -20001:fnd_global.set_nls -2074:fnd_global.set_nls.set_parameter (' NLS_ ORA-02074 detected in LANGUAGE ', ' Simplified Chinese '): Unable to SET NLS in Distributed transaction processing
Workaround: Add workaround Oracle Bugs in the database connection string 914652=true
Found on the internet for several days to find, and finally solved my problem, oh oh ...