From 48c537f092460834168eea7092ec991794ce9da1 Mon Sep 17 00:00:00 2001 From: halliday Date: Fri, 27 Oct 2023 18:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/DBConfig.py | 6 +++--- bin/SQLDataCreating.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/DBConfig.py b/bin/DBConfig.py index a0be5bd..a33840a 100644 --- a/bin/DBConfig.py +++ b/bin/DBConfig.py @@ -81,9 +81,9 @@ def oracle_config(): driver_jar_path = etc_dir / "driver" / oracle_info_dict['driver_jar'] oracle_info_dict['driver_jar_path'] = str(driver_jar_path) #这里要连接到具体的实例 - oracle_info_dict['jdbc_url'] = "jdbc:oracle:thin:@10.10.13.21:1521:a" - oracle_info_dict['db_user'] = "unary" - oracle_info_dict['db_password'] = "unary2023" + oracle_info_dict['jdbc_url'] = "jdbc:oracle:thin:@10.10.29.10:1521/unary" + oracle_info_dict['db_user'] = "Test01" + oracle_info_dict['db_password'] = "test123" #create table sql # now_hours = get_now() diff --git a/bin/SQLDataCreating.py b/bin/SQLDataCreating.py index 55771e6..4e4ddb9 100644 --- a/bin/SQLDataCreating.py +++ b/bin/SQLDataCreating.py @@ -19,7 +19,7 @@ from schedule import every, repeat, run_pending """ # 目前支持 MySQL和Oracle两种数据库,其他的数据库需要做适配 -DBType = "mysql" +DBType = "oracle" #获取连接信息