Skip to content

Liquibase update doesn't close connections, when web application keeps running #9218

@pmihalcin

Description

@pmihalcin

Given I have web application and enable liquibase updates with liquibase.enabled=true.
The application connects to Oracle db.
Let's say I have 2 users/schemas, one for deployment, second one for the application:

  • appdeploy
  • appuser

Application properties look like:

  • liquibase.url=jdbc:oracle:thin:@localhost:1521:XE
  • liquibase.user=appdeploy
  • liquibase.password=appdeploy
  • spring.datasource.url=jdbc:oracle:thin:@localhost:1521:XE
  • spring.datasource.username=appuser
  • spring.datasource.password=appuser

When I boot up the application (whereas liquibase update is executed) and I try to DROP USER appdeploy CASCADE;
Then I get ORA-01940: cannot drop a user that is currently connected
what indicates web application didn't release db connections

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions