diff --git a/athena-oracle/src/main/java/com/amazonaws/athena/connectors/oracle/OracleJdbcConnectionFactory.java b/athena-oracle/src/main/java/com/amazonaws/athena/connectors/oracle/OracleJdbcConnectionFactory.java index 32d5a0d2a4..cfe488a7ce 100644 --- a/athena-oracle/src/main/java/com/amazonaws/athena/connectors/oracle/OracleJdbcConnectionFactory.java +++ b/athena-oracle/src/main/java/com/amazonaws/athena/connectors/oracle/OracleJdbcConnectionFactory.java @@ -81,7 +81,7 @@ public Connection getConnection(final JdbcCredentialProvider jdbcCredentialProvi password = String.format("\"%s\"", password); } final String secretReplacement = String.format("%s/%s", jdbcCredentialProvider.getCredential().getUser(), - jdbcCredentialProvider.getCredential().getPassword()); + password); derivedJdbcString = secretMatcher.replaceAll(Matcher.quoteReplacement(secretReplacement)); LOGGER.info("derivedJdbcString: " + derivedJdbcString); return DriverManager.getConnection(derivedJdbcString, properties);