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

Error running dbDoc on a Sybase database

$
0
0
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:

  1. driver: com.sybase.jdbc3.jdbc.SybDriver
  2. url: jdbc:sybase:Tds:mydbserver:1400/jeffersd
  3. username: jeffersd_dbo
I created a changelog.json file like this:

  1. {
  2.   "databaseChangeLog": [
  3.   ]
  4. }

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:

  1. INFO 1/14/14 2:57 PM:liquibase: Error getting default schema
  2. 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).

  3.         at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:78)
  4.         at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:107)
  5.         at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:118)

Any ideas as to how I can get this to work?

Thanks,
Dave

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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