Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

I have some trouble with Liquibase commandline with oracle

$
0
0
I have that structure:
c:
----> ProgramFiles
--------> Liquibase

d:
----> db
--------> changelog
------------> db.changelog.xml (here I have my first migration justo for test)

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <databaseChangeLog
  3.         xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
  4.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5.         xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
  6.         xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
  7.         http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
  8.     <changeSet id="1" author="Andre de Mattos Ferraz">
  9.         <sql splitStatements="false">
  10. create sequence s_gis_teste minvalue 1 maxvalue 9999999999 start with 1 increment by 1;
  11. </sql>
  12.     </changeSet>
  13.     <rollback>
  14. <sql>
  15. drop sequence s_gis_teste;
  16. </sql>
  17.     </rollback>
  18. </databaseChangeLog>

Now when a execute liquibase at commandline I got this:
java -jar liquibase.jar --driver=oracle.jdbc.driver.OracleDriver --classpath=lib/ojdbc14.jar --changeLogFile="D:/Migrations/db/changelog/db.changelog.xml" --url=jdbc:oracle:thin:@srv110:1521:ora10d --username=d_gis_integracao --password=d_gis_integracao migrate

"Liquibase update Failed: liquibase.exception.DatabaseException: java.sql.SQLExce
ption: Recurso nÒo suportado" (Resourse not supported)

With logLevel:
DEBUG 10/01/14 16:28:liquibase: Connected to D_GIS_INTEGRACAO@jdbc:oracle:thin:@
srv110:1521:ora10d
DEBUG 10/01/14 16:28:liquibase: Setting auto commit to false from true
Liquibase update Failed: liquibase.exception.DatabaseException: java.sql.SQLExce
ption: Recurso nÒo suportado
SEVERE 10/01/14 16:28:liquibase: liquibase.exception.DatabaseException: java.sql
.SQLException: Recurso nÒo suportado
liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: ja
va.sql.SQLException: Recurso nÒo suportado
        at liquibase.database.AbstractJdbcDatabase.getDatabaseMajorVersion(Abstr
actJdbcDatabase.java:241)
        at liquibase.Liquibase.setDatabasePropertiesAsChangelogParameters(Liquib
ase.java:878)
        at liquibase.Liquibase.setDatabase(Liquibase.java:102)
        at liquibase.Liquibase.<init>(Liquibase.java:87)
        at liquibase.integration.commandline.Main.doMigration(Main.java:796)
        at liquibase.integration.commandline.Main.main(Main.java:133)
Caused by: liquibase.exception.DatabaseException: java.sql.SQLException: Recurso
 nÒo suportado
        at liquibase.database.jvm.JdbcConnection.getDatabaseMajorVersion(JdbcCon
nection.java:46)
        at liquibase.database.AbstractJdbcDatabase.getDatabaseMajorVersion(Abstr
actJdbcDatabase.java:239)
        ... 5 more
Caused by: java.sql.SQLException: Recurso nÒo suportado
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
        at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBEr
ror.java:690)
        at oracle.jdbc.OracleDatabaseMetaData.getDatabaseMajorVersion(OracleData
baseMetaData.java:4444)
        at liquibase.database.jvm.JdbcConnection.getDatabaseMajorVersion(JdbcCon
nection.java:44)
        ... 6 more

Obs: This Data Base its completely empty (I dont run anything). I need run any script for liquibase? Any Ideas about de problem?

Thx in Advance

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>