gpt4 book ai didi

liquibase - 连接到 HANA 时解锁 liquibase 锁

转载 作者:行者123 更新时间:2023-12-04 01:51:38 27 4
gpt4 key购买 nike

我在 VDI 上针对 SAP HANA 数据库运行 liquibase 脚本。然后,VDI 挂了,所以我就杀掉了 VDI。再次打开 VDI 并尝试启动运行相同 liquibase 脚本的相同应用程序时,出现以下错误:正在初始化与 HANA 的连接...

INFO  [2018-10-09 17:36:42,245] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:36:52,321] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:37:02,368] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:37:12,412] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:37:22,463] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:37:32,513] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:37:42,564] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:37:52,619] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:38:02,666] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:38:12,716] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:38:22,764] liquibase: Waiting for changelog lock....
INFO [2018-10-09 17:38:32,819] liquibase: Waiting for changelog lock....

....

然后我得到以下错误

! liquibase.exception.LockException: Could not acquire change log lock.  Currently locked by SomeVMMAchine since 10/9/18 11:05 AM
! at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:175) ~[liquibase-core-3.4.1.jar:na]

我知道这个问题之前在 stackoverflow 上得到了回答(Liquibase lock - reasons?),但是 hana 数据库人员无法按照答案的建议在 Hana 数据库中找到名为“DATABASECHANGELOGLOCK”的表。有什么建议吗?

最佳答案

我的建议是:再次询问数据库人员。我会假设 table 在那里。否则 liquibase 应该如何知道它当前被“SomeVMMAchine 自 10/9/18 11:05 AM 以来”锁定。

您也可以尝试运行 releaseLocks释放锁的命令

关于liquibase - 连接到 HANA 时解锁 liquibase 锁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52730812/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com