我正在尝试使用代理用户与liquibase和oracle 12进行连接,并且不使用代理用户,而是使用属性文件中指定的用户名。我在讨论的其中一个中看到了这一点,其中提到oci驱动程序必须支持这一点,但是对于我来说似乎不起作用。
more liquibase.properties
driver: oracle.jdbc.OracleDriver
classpath:./lib
url: jdbc:oracle:oci:LBDEMO/@yyyyy.healthpartners.com:1551:zzzzz
username:oraXXX
password:XXXXXXX
changeLogFile:changelog.xml
Changelog.xml:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<preConditions>
<dbms type="oracle" />
<runningAs username="LBDEMO" />
</preConditions>
<include file="1.sql"/>
<include file="2.sql"/>
<include file="3.sql"/>
</databaseChangeLog>
运行Liquibase发生意外错误:验证失败:
1个前提条件失败
changelog.xml:RunningAs前提条件失败:预期的LBDEMO是ORAXXX