<!-- =================================================================== -->
   <!-- ant properties/targets for oracle 8/9                               -->
   <!-- note: this is not a proper xml file (there is no root element)      -->
   <!--       it is intended to be imported from a *real* xml file          -->
   <!-- =================================================================== -->

   <!-- please set your Oracle-SID according to your needs -->

   <property environment="env"/>

   <property name="database.script.file"           value="${src.dir}/sql/${name}-oracle.sql"/>
   <!--property name="database.driver.file"           value="${env.ORACLE_HOME}/jdbc/lib/classes12.jar"/-->
   <property name="database.driver.file"           value="${lib.dir}/classes12.jar"/>
   <property name="database.driver.classpath"      value="${database.driver.file}"/>
   <property name="database.driver"                value="oracle.jdbc.driver.OracleDriver"/>
   <property name="database.url"                   value="jdbc:oracle:thin:@localhost:1521:oracle"/>
   <property name="database.userid"                value="scott"/>
   <property name="database.password"              value="tiger"/>
   <property name="database.schema"                value="scott"/>
   <property name="database.catalog"               value=""/>

   <!--property name="jboss.datasource.mapping"       value="Oracle7"/-->
   <!--property name="jboss.datasource.mapping"       value="Oracle8"/-->
   <property name="jboss.datasource.mapping"       value="Oracle9i"/>
1. 注意一定要设置SCHEMA
2. 用了默认的driver.file设置,在执行ant时出错,我就把oracle_home/jdbc/lib下的jar文件拷贝到 lib 目录下了,再修改driver.file属性即可



< br>