From 5be12076c31906a8a11154032c7bbc1b3299e0d3 Mon Sep 17 00:00:00 2001 From: xiegaofeng Date: Wed, 23 Mar 2022 09:49:05 +0800 Subject: [PATCH] =?UTF-8?q?[manager]=201.=20=E6=B7=BB=E5=8A=A0=20oracle=20?= =?UTF-8?q?=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../usthe/collector/collect/database/JdbcCommonCollect.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/collector/src/main/java/com/usthe/collector/collect/database/JdbcCommonCollect.java b/collector/src/main/java/com/usthe/collector/collect/database/JdbcCommonCollect.java index 0e852f4..e143781 100644 --- a/collector/src/main/java/com/usthe/collector/collect/database/JdbcCommonCollect.java +++ b/collector/src/main/java/com/usthe/collector/collect/database/JdbcCommonCollect.java @@ -285,6 +285,10 @@ public class JdbcCommonCollect extends AbstractCollect { url = "jdbc:sqlserver://" + jdbcProtocol.getHost() + ":" + jdbcProtocol.getPort() + ";" + (jdbcProtocol.getDatabase() == null ? "" : "DatabaseName=" + jdbcProtocol.getDatabase()); break; + case "oracle": + url = "jdbc:oracle:thin:@" + jdbcProtocol.getHost() + ":" + jdbcProtocol.getPort() + + "/" + (jdbcProtocol.getDatabase() == null ? "" : jdbcProtocol.getDatabase()); + break; default: throw new IllegalArgumentException("Not support database platform: " + jdbcProtocol.getPlatform());