未指定'DAL + UDT_FIELDS'的自定义类型映射或无效。测试环境中的Oracle版本问题

时间:2019-09-19 05:17:41

标签: c# asp.net .net oracle11g oracle-sqldeveloper

我有一个Windows应用程序,可以在.net c#和oracle db中作为调度程序运行。应用程序在我的开发环境中运行良好。我将其移至测试环境。安装了它,但是在运行时显示错误

Custom type mapping for 'DAL+UDT_FIELDS' is not specified or is invalid.

UDT_FIELDS是一个oracle类型。

在日志文件中,我收到消息“ Notification-command”。代码的下一行command.ExecuteScalar();我认为出现错误。 由于该应用程序在开发环境中运行良好,因此它在测试环境中是一个oracle版本问题。我的oracle版本是oracle.dataaccess.2.112.1.2

Oracle.DataAccess.Client.OracleParameter[] parameters = new Oracle.DataAccess.Client.OracleParameter[3];              
parameters[0] = CreateInPutParameter("s_recursive", "N");
parameters[1] = CreateCustomTypeInputParameter<UDT_FIELDS>("data1", "MY_DB.UDT_FIELDS", data1);
parameters[2] = CreateOutPutParameter("po_msg");
parameters[2].Size = 2000;
log.Debug("trans no - " + tno);
var command = CreateCommand("MY_DB.SERVICE_STATUS", CommandType.StoredProcedure, parameters);
log.Debug("Notification-command ");
command.ExecuteScalar();

string Message = command.Parameters[2].Value.ToString();
log.Debug("*****************************Notification-Message "+ Message);
if (!string.IsNullOrEmpty(Message) && Message.ToUpper() == "SUCCESS")
     return true;
 else
     return false;

0 个答案:

没有答案
相关问题