这是连接到 Oracle 数据库的代码。它在最后一行失败:dbDataAdapter.Fill(dtResult);
private object Execute(CommandType commandType, Common.DATA.SqlCommonExecutionType sqlCommonExecutionType, DbCommand dbCommand)
dbc = dbConnection.CreateCommand();
dbc.CommandType = commandType;
dbc.CommandText = dbCommand.CommandText;
dbc.CommandTimeout = 3600;
if (dbc.Connection.State == ConnectionState.Closed)
dbc.Connection.Open();
DataTable dtResult = new DataTable();
DbDataAdapter dbDataAdapter = dbProviderFactory.CreateDataAdapter();
dbDataAdapter.SelectCommand = dbc;
dbDataAdapter.Fill(dtResult);
错误是“OracleRxception 被捕获:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'RESETUNFINISHEDJOBS' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
我可以通过 Oracle SQL*Plus 访问数据库。为什么我会收到此错误?数据库端缺少存储过程还是我的代码?关于如何解决这个问题的任何想法?