我在Oracle里创建了如下存储过程(已提示成功)
create or replace procedure batchSaveForeignercountryst(csn in varchar2,cn in varchar2,tsn in number,csy in number) as
begin
   insert into Foreignercountryst(countrystatisticsname,countryname,totalstatisticsnum,countrystatisticsyear,countrystid) values(csn,cn,tsn,csy,CountryStID.Nextval);
end;
/操作的目标数据表如下:
create table ForeignerCountrySt
(
  CountryStID NUMBER(20) not null primary key,
  CountryStatisticsName VARCHAR2(120) not null,
  CountryName VARCHAR2(60),
  TotalStatisticsNum  Number(10) not null,
  CountryStatisticsYear Number(4) not null,
  Items1 Varchar2(1),
  Items2 Varchar2(1)
);在SSH框架里调用存储过程的代码如下(可能的错误来源,此代码启动tomcat时通过):
SessionFactory sessions = new Configuration().configure().buildSessionFactory();
net.sf.hibernate.Session session = sessions.openSession();
Transaction tx = session.beginTransaction();
Connection con = session.connection();
String procedure = "{call batchSaveForeignercountryst(?,?,?,?)}";
CallableStatement cstmt = con.prepareCall(procedure);
for (int i = 0; i < data.size(); i++) {
cstmt.setString(1, data.get(i).get(0).toString());
cstmt.setString(2,data.get(i).get(1).toString());
cstmt.setInt(3, Integer.parseInt(data.get(i).get(2).toString()));
cstmt.setInt(4,Integer.parseInt(data.get(i).get(3).toString()));
cstmt.execute();
}
tx.commit();当执行到"cstmt.execute();"时提示如下错误信息:
java.sql.SQLException: ORA-06550: 第 1 行, 第 7 列: 
PLS-00201: 必须说明标识符 'BATCHSAVEFOREIGNERCOUNTRYST'
ORA-06550: 第 1 行, 第 7 列: 
PL/SQL: Statement ignored
......
我的想法可能是配置文出了问题(猜测),可不知如何解决?在这个错误之前有一个/Hibernate.cfg.xml not found的错误,于是加了如下Hibernate.cfg.xml文件后错误消失又出现上述错误
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><!-- Generated by MyEclipse Hibernate Tools.                   -->
<hibernate-configuration>    <session-factory>
        <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
        <property name="connection.url">jdbc:oracle:thin:@192.168.0.3:1521:Oracle</property>
        <property name="connection.username">system</property>
        <property name="connection.password">bupt</property>
        <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
        <property name="myeclipse.connection.profile">yujingDB</property>
    
    </session-factory></hibernate-configuration>谁能帮帮我,先谢谢了