I have an issue with connecting with Liquibase 3.5.3 to Oracle 12c. I receive this error: "ORA-28040: No matching authentication protocol" no matter what.
The connection to 11g is working flawlessly but to 12c it's not. I have tried ojdbc 6-7-8-14 driver too, and I have tried with property file and call Liqueibase directly with commands only but same error.
Commands
liquibase
--driver=oracle.jdbc.OracleDriver
--classpath=C:/liquibase-3.5.3-bin/lib/ojdbc7.jar
--url="jdbc:oracle:thin:@123.123.123:1111/SERVICE_NAME"
--username="FAKE_USERNAME"
--password="FAKE_PASSWORD"
--changeLogFile=C:/FAKE_PATH/db-changelog-master.xml
--logLevel=DEBUG
--contexts="FAKE_CONTEXTS" updateSQL > script.sql
-DinsertCondition=FAKE -DnwuCondition=FAKE
liquibase.properties
classpath: lib\\ojdbc8.jar
driver: oracle.jdbc.OracleDriver
url: jdbc:oracle:thin:@123.123.123:1111/SERVICE_NAME
username: FAKE
password: FAKE
changeLogFile: C:\\FAKE\\db-changelog-master.xml
Anybody could suggest anything regarding to this?
Respons in cmd:
SEVERE 9/6/17 4:34 PM: liquibase: java.sql.SQLException: ORA-28040: No matching authentication protocol
liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: java.sql.SQLException: ORA-28040: No matching authentication protocol
at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:127)
at liquibase.integration.commandline.Main.doMigration(Main.java:958)
at liquibase.integration.commandline.Main.run(Main.java:188)
at liquibase.integration.commandline.Main.main(Main.java:103)
Caused by: liquibase.exception.DatabaseException: java.sql.SQLException: ORA-28040: No matching authentication protocol
at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:247)
at liquibase.database.DatabaseFactory.openDatabase(DatabaseFactory.java:151)
at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:85)
... 3 more
Caused by: java.sql.SQLException: ORA-28040: No matching authentication protocol
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:113)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278)
at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOsesskey(T4CTTIoauthenticate.java:295)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:359)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:454)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:802)
at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:239)
... 5 more