I have a simple change log file for testing purposes that applies 1 changeSet which drops a table and creates it. We have 20 DEV / QA databases all on the same version of DB2, OS, etc. This changeSet works in 19 of them. It bombs in 1 DB with the error which is listed below. The databasechangelog and databasechangeloglock tables are never built.
I am unable to find much help online. Any help you can provide is most appreciated!
Error
Unexpected error running Liquibase: liquibase.snapshot.InvalidExampleException: Found multiple catalogs matching XXX
SEVERE 12/9/14 2:02 PM: liquibase: liquibase.snapshot.InvalidExampleException: Found multiple catalogs matching XXX liquibase.exception.LockException: liquibase.exception.UnexpectedLiquibaseException: liquibase.snapshot.InvalidExampleException: gs matching XXX at liquibase.lockservice.StandardLockService.acquireLock(StandardLockService.java:214) at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:153) at liquibase.Liquibase.update(Liquibase.java:182) at liquibase.Liquibase.update(Liquibase.java:174) . . .
databaseChangeLog.xml
=====================
<?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"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
<preConditions>
<dbms type="DB2"/>
</preConditions>
<include file="db2\viewname_changeSet_005.xml"/>
</databaseChangeLog>
viewname_changeSet_005.xml
==========================
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
<changeSet id="STPL_TEST Drop Table" author="Joan">
<preConditions onFail="CONTINUE">
<sqlCheck expectedResult="1">SELECT COUNT(*) FROM syscat.tables where tabname = 'STPL_TEST'</sqlCheck>
</preConditions>
<sql>
DROP TABLE STPL_TEST;
</sql>
</changeSet>
<changeSet id="STPL_TEST Create Table" author="Joan">
<sql>
CREATE TABLE STPL_TEST (
ST_ID BIGINT NOT NULL,
ST_VCHAR VARCHAR(10),
ST_DATE DATE
);
</sql>
</changeSet>
</databaseChangeLog>