I have a similar problem with Oracle 11g and Liquibase. I get ORA-00911. In my db-changelog.xml, I point to the sql file where I have triggers. This does not work at all. I tested what you said above with / \;
CREATE OR REPLACE TRIGGER ADRESSE_ID_TR BEFORE INSERT ON ADRESSE FOR EACH ROW WHEN (new.ID IS NULL) BEGIN SELECT adresse_seq.NEXTVAL INTO :new.ID FROM dual; END ADRESSE_ID_TR;\
My workaround is to add in to db-changelog.xml. I do not like this because db-changelog.xml will be very large and I want it in .sql files not in db-changelog.xml.
Another problem is when I create DDL with tools like Oracle SQL Developer and paste them, they do not work. Many sql do not work, may not be supported. I spend a lot of time testing my SQL and Liquibase with Eclipse to fix SQL. Any tips or will you fix it?
source share