CREATE OR REPLACE package hnzs.pkg_getlist
is
type mytype is ref cursor;
procedure getlist(in_wblb varchar2,mycs out mytype);
end; CREATE OR REPLACE package BODY hnzs.pkg_getlist
is
procedure getlist(in_wblb varchar2,mycs out mytype)
is
begin
 open mycs for select fgbh,wjmc from zcfgxx where ycbz='1' and wblb=in_wblb;
end getlist;
end pkg_getlist;调用方法:
strcn=ConfigurationSettings.AppSettings["hnzs195"];
OracleConnection myConnection = new OracleConnection(strcn);
OracleCommand myCommand = new OracleCommand("hnzs.getlist", myConnection);

myCommand.CommandType = CommandType.StoredProcedure;
OracleParameter parameterwblb = new OracleParameter("in_wblb",OracleType.VarChar,4);
parameterwblb.Value = "1";
myCommand.Parameters.Add(parameterwblb);myCommand.CommandType = CommandType.StoredProcedure;
OracleParameter parametermycs = new OracleParameter("mycs",OracleType.Cursor);
parametermycs.Direction=System.Data.ParameterDirection.Output;
myCommand.Parameters.Add(parametermycs);OracleDataAdapter da=new OracleDataAdapter(myCommand);
DataSet ds=new DataSet();
da.Fill(ds,"zcfgxx");
this.zcfglist.DataSource=ds;
this.zcfglist.DataBind();IE运行提示错误:
ORA-06550: 第 1 行, 第 7 列: PLS-00201: 必须说明标识符 'HNZS.GETLIST' ORA-06550: 第 1 行, 第 7 列: PL/SQL: Statement ignored