I have that structure:
c:
----> ProgramFiles
--------> Liquibase
d:
----> db
--------> changelog
------------> db.changelog.xml (here I have my first migration justo for test)
- <?xml version="1.0" encoding="UTF-8"?>
- <databaseChangeLog
- xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
- xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
- http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
- <changeSet id="1" author="Andre de Mattos Ferraz">
- <sql splitStatements="false">
- create sequence s_gis_teste minvalue 1 maxvalue 9999999999 start with 1 increment by 1;
- </sql>
- </changeSet>
- <rollback>
- <sql>
- drop sequence s_gis_teste;
- </sql>
- </rollback>
- </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