【发布时间】:2021-07-28 22:31:10
【问题描述】:
我正在为 Sybase ASE 使用带有 spring boot 的 liquibase,并且在应用程序启动时出现此错误 -
Caused by: java.sql.SQLException: Permission denied, database db_local, owner dbo. You need the following permission(s) to run this command: CREATE TABLE
这可能是因为我们使用不同的凭据进行登录,但为了执行我们定义的更改集,将代理设置为具有所有权限的另一个用户 -
<changeSet author="12345" id="set-dbo-alias" runAlways="true" dbms="sybase">
<comment> This should run always as the first step </comment>
<sql>SET quoted_identifier OFF</sql>
<sql>set proxy dbMainUser</sql>
<sql>set replication off</sql>
</changeSet>
但是,在启动时它正在尝试创建 DATABASECHANGELOG 表,这似乎是在执行我设置代理的更改集之前发生的。我不知道如何将代理设置为 dbMainUser。任何建议或指导都会有所帮助。
【问题讨论】:
标签: spring-boot sybase liquibase