ora-06550调用程序

时间:2017-08-14 13:59:05

标签: vb.net stored-procedures

根据我看到的错误,我的代码没有进入我的过程调用的开头,并指出我传递的参数之一可能出错:

PROCEDURE PRICING_SPLIT
(P_PRICING_PERIOD IN p.pricing_period_code%TYPE,     --say, which is how I’ve tried to correct for this, but no joy.
P_RETURN_CODE OUT VARCHAR2
  ) IS

  BEGIN

而不是:

PROCEDURE PRICING_SPLIT
(P_PRICING_CODE IN NUMBER,
  P_RETURN_CODE OUT VARCHAR2
  ) IS

  BEGIN

我的代码也在vb.net中:

    Dim dbConn As New OleDbConnection
    Dim dbComm As OleDbCommand

    dbConn.ConnectionString = "Provider = MSDAORA;User ID = xxxx;Password = xxxx;Data Source = myDatabase;"
    dbConn.Open()
    dbComm = dbConn.CreateCommand

    dbComm.Parameters.Add("pricing_period", OleDbType.Numeric, 4).Direction = ParameterDirection.Input
    dbComm.Parameters.Add("return_code", OleDbType.VarChar, 2).Direction = ParameterDirection.Output

    dbComm.CommandText = "enq_pricing.pricing_split"
    dbComm.CommandType = CommandType.StoredProcedure
    dbComm.ExecuteNonQuery()
    dbConn.Close()

    MessageBox.Show(dbComm.Parameters("temp").Value)

我可能会遗漏任何建议,非常感谢。

0 个答案:

没有答案