oracle、mysql、达梦(DM)、人大金仓(kingbase)的jdbc.properties文件配置

文章目录

  • oracle数据库连接
    • jdbc.properties
    • pom
  • mysql
    • jdbc.properties
    • pom
  • 达梦(DM)
    • jdbc.properties
    • pom
  • 人大金仓(kingbase)
    • jdbc.properties
    • pom

oracle数据库连接

jdbc.properties

#db.url = jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.187.36)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.187.44)(PORT = 1521)))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ddxt4)))

#db.username = test
#db.password = test
#db.driver = oracle.jdbc.driver.OracleDriver
#db.url = jdbc:oracle:thin:@127.0.0.1:1521:orcl
#db.dialect = oracle
#db.validationQuery = select 1 from dual

pom

  <dependency>
       <groupId>com.oraclegroupId>
       <artifactId>ojdbc14artifactId>
       <scope>systemscope>
     <systemPath>${project.basedir}/src/lib/ojdbc14-10.2.0.5.0.jarsystemPath>
 dependency>

mysql

jdbc.properties

#db.username = test
#db.password = test
#db.driver = com.mysql.jdbc.Driver
#db.url = jdbc:mysql://127.0.0.1:3306/wms?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&autoReconnect=true&useSSL=false
#db.dialect = mysql
#db.validationQuery = select 1

pom

    <dependency>
        <groupId>mysqlgroupId>
        <artifactId>mysql-connector-javaartifactId>
        <version>5.1.49version>
    dependency>

达梦(DM)

jdbc.properties

#集群式部署
#db.url = jdbc:dm://AA?AA=(127.0.0.1:5236,127.0.0.1:5236,127.0.0.1:5236)&schema=JWCMS&serverTimezone=UTC&LOGIN_NODE=(1)

db.username = test
db.password = test
db.driver = dm.jdbc.driver.DmDriver
db.url = jdbc:dm://127.0.0.1:5236
db.dialect = oracle
db.validationQuery = select 1 from dual

pom

    <dependency>
        <groupId>com.damenggroupId>
        <artifactId>DmJdbcDriver18artifactId>
        <version>8.1.1.193version>
    dependency>

人大金仓(kingbase)

jdbc.properties

#db.username = test
#db.password = test
#db.driver = com.kingbase8.Driver
#db.url = jdbc:kingbase8://127.0.0.1:54321/jwcms
#db.dialect = oracle
#db.validationQuery = select 1 from dual

pom

  <dependency>
       <groupId>cn.com.kingbasegroupId>
       <artifactId>kingbase8artifactId>
       <version>8.6.0version>
  dependency>

你可能感兴趣的:(oracle,mysql,数据库)