ASP中:
string  addictno11;  
             addictno11  =  Request.Params[  "id  "];  
             OracleConnection  conn  =  new  OracleConnection(  "Data  Source=duke;Persist  Security  Info=True;User  ID=gxjd;Password=gxjd  ");    
               OracleCommand  cmd  =  new  OracleCommand(  );  
               cmd.Connection  =  conn;  
               cmd.CommandText  =    "DUKESELECT2  ";  
               cmd.CommandType  =  CommandType.StoredProcedure;  
               cmd.Parameters.Add(new  OracleParameter(  "addictnox  ",  OracleType.VarChar,20,  addictno11));                            
 
               conn.Open();  
               cmd.ExecuteNonQuery();  
               conn.close(); ////////////////////////ORACLE中的存储过程
PROCEDURE  DUKESELECT2  
     (addictnox  in  varchar2)  
     AS  
     CURSOR  T1  
     IS  
     select  photo,nationalitycd.NationalityDesc,sexcd.sexdesc,educd.edudesc,vocationcd.vocationdesc  
     from  addict,sexcd,  NationalityCD,educd,vocationcd  
     where    (addict.Nationality  =nationalitycd.NationalityID(+))  and  (addict.sex  =sexcd.sexid(+))  
     and  (addict.education  =educd.eduid(+))  and  (addict.vocation  =vocationcd.vocationid(+))  
     and  addictno  =  addictnox;  
                   
                 XX  T1%rowtype;  
BEGIN  
       open   T1;  
       fetch  T1  INTO  XX;  
       CLOSE  T1;  
 
END;  
 
在VS中运行会提示:cmd.ExecuteNonQuery()调用存储过程DUKESELECT2时候参数数量或类型出错..
这种错误,我不太会处理....