From a126353e7d5cf7a24ce4973c50da6c83012791f3 Mon Sep 17 00:00:00 2001 From: chengrui1 <33925582+chengrui1@users.noreply.github.com> Date: Mon, 23 Oct 2023 16:50:34 +0800 Subject: [PATCH] Update SqlConnection.java When you use service_name to connect to oracle, should pass in serviceName instead of database --- .../linkis/metadata/query/service/oracle/SqlConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkis-public-enhancements/linkis-datasource/linkis-metadata-query/service/jdbc/src/main/java/org/apache/linkis/metadata/query/service/oracle/SqlConnection.java b/linkis-public-enhancements/linkis-datasource/linkis-metadata-query/service/jdbc/src/main/java/org/apache/linkis/metadata/query/service/oracle/SqlConnection.java index 8125c6805e..c4487dcc7a 100644 --- a/linkis-public-enhancements/linkis-datasource/linkis-metadata-query/service/jdbc/src/main/java/org/apache/linkis/metadata/query/service/oracle/SqlConnection.java +++ b/linkis-public-enhancements/linkis-datasource/linkis-metadata-query/service/jdbc/src/main/java/org/apache/linkis/metadata/query/service/oracle/SqlConnection.java @@ -182,7 +182,7 @@ private Connection getDBConnection( SQL_CONNECT_SERVICE_URL.getValue(), connectMessage.host, connectMessage.port, - database); + serviceName); } if (MapUtils.isNotEmpty(connectMessage.extraParams)) {