From af9aedfd2d231dd6e911679d6b54084dc409bf54 Mon Sep 17 00:00:00 2001 From: "Kevin.Shin" Date: Thu, 17 Mar 2022 11:10:39 +0800 Subject: [PATCH] fix https://github.com/apache/dolphinscheduler/issues/8889 (#8921) --- .../plugin/datasource/oracle/OracleDataSourceClient.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-oracle/src/main/java/org/apache/dolphinscheduler/plugin/datasource/oracle/OracleDataSourceClient.java b/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-oracle/src/main/java/org/apache/dolphinscheduler/plugin/datasource/oracle/OracleDataSourceClient.java index 6131dad924..49df29109a 100644 --- a/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-oracle/src/main/java/org/apache/dolphinscheduler/plugin/datasource/oracle/OracleDataSourceClient.java +++ b/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-oracle/src/main/java/org/apache/dolphinscheduler/plugin/datasource/oracle/OracleDataSourceClient.java @@ -20,6 +20,7 @@ package org.apache.dolphinscheduler.plugin.datasource.oracle; import org.apache.dolphinscheduler.plugin.datasource.api.client.CommonDataSourceClient; import org.apache.dolphinscheduler.spi.datasource.BaseConnectionParam; import org.apache.dolphinscheduler.spi.enums.DbType; +import org.apache.dolphinscheduler.spi.utils.Constants; public class OracleDataSourceClient extends CommonDataSourceClient { @@ -27,4 +28,8 @@ public class OracleDataSourceClient extends CommonDataSourceClient { super(baseConnectionParam, dbType); } + protected void setDefaultValidationQuery(BaseConnectionParam baseConnectionParam) { + baseConnectionParam.setValidationQuery(Constants.ORACLE_VALIDATION_QUERY); + } + }