连接到HANA时解锁Liquibase锁

时间:2018-10-09 23:58:11

标签: liquibase

我正在针对SAP HANA数据库的VDI上运行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]

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

1 个答案:

答案 0 :(得分:2)

我的建议是:再次询问数据库管理员。我认为桌子在那里。否则,liquibase应该如何知道它当前已被“ SomeVMMAchine从18/9/18 11:05 AM锁定”。

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