Home:ALL Converter>Liquibase create/alter DB user

Liquibase create/alter DB user

Ask Time:2021-04-21T20:19:01         Author:Prometheus

Json Formatter

I want to create and alter DB user using Liquibase. Following are the SQL queries to do so for Oracle DB.

change password:
ALTER USER ADMIN IDENTIFIED BY ${user.password};
create user:
CREATE USER appuser IDENTIFIED BY ${user.password};

I want to make the password parameterized, but changelog Property Substitution is not available in SQL format.

I am choosing XML as the fallback option, but not able to convert above queries into Liquibase XML format. I need help in converting alter/create user queries into XML.

Author:Prometheus,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/67195815/liquibase-create-alter-db-user
yy