Is it possible to manage an oracle database with flyway?

旧街凉风 提交于 2019-12-24 04:34:13

问题


I'm really struggling to understand how I can use flyway to manage an oracle database.

The database in question has 3 schemas.

If I stipulate the 3 schemas in the flyway plugin definition in my gradle file, how do I manage the creation of the users themselves, and the tablespaces they use?

Any tips or suggestions would be more than welcome.

Creating a DDL for a baseline for flyway


回答1:


If You would create the DB with some limited super-user account, You could use it to create users and tablespaces, having a separate Flyway migration instance. That is:

  1. Flyway migration by super-user from sql/db-configuration/ using dedicated flyway.conf
    • creates users, tablespaces, and all other configuration
  2. Flyway migration by application-user from sql/app-code/ using dedicated flyway.conf
    • regular application code


来源:https://stackoverflow.com/questions/54941316/is-it-possible-to-manage-an-oracle-database-with-flyway

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!