2009-10-22 35 views
0

我试图得到在liquibase 1.9.5中运行一个非常简单的例子(见最后)。liquibase - 无法获取样本工作

当我运行

liquibase --changeLogFile=test_sample.xml update 

我收到此错误信息。

迁移失败:ORA-03115:使用 不受支持的网络数据类型或 表示

林的Oracle 10g XE 10.2.0.1。据我所知(和谷歌搜索),这是一个错误,涉及到 传递一个查询的预处理语句的执行方法,或“东西”(猜测我的oracle驱动程序)已被弃用。

我的属性文件看起来是这样的:

#liquibase.properties 
driver: oracle.jdbc.driver.OracleDriver 
classpath: ./classes12.zip 
url: jdbc:oracle:thin:@localhost:1521:XE 
username: lb_dev 
password: lb_dev 

有什么想法?

在此先感谢。

文件test_sample.xml

<databaseChangeLog 
    xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.6" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.6 
     http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.6.xsd"> 

    <changeSet id="1" author="bob"> 
     <createTable tableName="department"> 
      <column name="id" type="int"> 
       <constraints primaryKey="true" nullable="false"/> 
      </column> 
      <column name="name" type="varchar(50)"> 
       <constraints nullable="false"/> 
      </column> 
      <column name="active" type="boolean" defaultValue="1"/> 
     </createTable> 
    </changeSet> 

</databaseChangeLog> 

回答

3

尝试使用

+0

YES,非常感谢你,而不是classes12.zip将ojdbc14.jar驱动程序:) – Tom