有存储过程:SP_PUB_ID
(New_ID in int)
 as
begin
 null;
end;前台调用:
        private void button1_Click_1(object sender, EventArgs e)
        {
            string sqlGetCode="SP_PUB_ID";
            OracleConnection oraCon = new OracleConnection(“your Connect String”);
            OracleCommand oraCmd = new OracleCommand();
            oraCmd.Connection = oraCon;
            oraCmd.CommandType = CommandType.StoredProcedure;
            oraCmd.CommandText = sqlGetCode;            OracleParameter tt = new OracleParameter();
            tt.ParameterName = "NewID";
            tt.OracleType = OracleType.Int32;
            tt.Direction = ParameterDirection.Input;
            tt.Value = 1;
            oraCmd.Parameters.Add(tt);
            try
            {
                oraCon.Open();
                oraCmd.ExecuteNonQuery();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            ps.oraCon.Close();
        }错误提示:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'SP_PUB_ID'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored请问为什么出现这种错误,程序错在什么地方?怎么改?注意:我一定要用外部定义的参数,不能直接传入。因为如果是输出参数的存储过程只能这样做。