Hi,
I have just downloaded liquibase 3.0.8 in order to evaluate it for my company.
My OS is Red Hat Enterprise 5.6. And I am using java 1.7. Connecting to a Sybase 15.0.2 dataserver.
I have a properties file that looks like this:
- driver: com.sybase.jdbc3.jdbc.SybDriver
- url: jdbc:sybase:Tds:mydbserver:1400/jeffersd
- username: jeffersd_dbo
- {
- "databaseChangeLog": [
- ]
- }
I then run the following command:
./liquibase --defaultsFile=./db/mydbserver/jeffersd/liquibase.properties --changeLogFile=./db/mydbserver/jeffersd/changelog.json --password=mypassword dbDoc ./db/mydbserver/jeffersd/
And get the following error:
Liquibase dbDoc Failed: liquibase.exception.DatabaseException: Error executing SQL CREATE TABLE [DATABASECHANGELOGLOCK] ([ID] INT NOT NULL, [LOCKED] BIT NOT NULL, [LOCKGRANTED] datetime NULL, [LOCKEDBY] VARCHAR(255) NULL, CONSTRAINT [PK_DATABASECHANGELOGLOCK] PRIMARY KEY ([ID])): There is already an object named 'DATABASECHANGELOGLOCK' in the database.
As the error suggests the table DATABASECHANGELOGLOCK does exist.
If I run it with logLevel=debug I get lots more output see attached file. But here is what I think is the highlight:
- INFO 1/14/14 2:57 PM:liquibase: Error getting default schema
- liquibase.exception.DatabaseException: Error executing SQL call current_schema: Stored procedure 'call' not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).
- at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:78)
- at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:107)
- at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:118)
Any ideas as to how I can get this to work?
Thanks,
Dave