当前位置:Gxlcms > 数据库问题 > SpringBoot 连接Oracle单机和RAC

SpringBoot 连接Oracle单机和RAC

时间:2021-07-01 10:21:17 帮助过:30人阅读

1 单机

spring.datasource.url = jdbc:oracle:thin:@47.98.234.60:1521:WMSPROD

spring.datasource.driverClassName = oracle.jdbc.driver.OracleDriver

spring.datasource.username = root

spring.datasource.password = wms@123

 

2 RAC(集群)

spring.datasource.url = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=47.98.234.60)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=47.98.234.61)(PORT=1521))(FAILOVER=on)(LOAD_BALANCE=on))(CONNECT_DATA=(SERVICE_NAME=WMSPROD)))

spring.datasource.driverClassName = oracle.jdbc.driver.OracleDriver

spring.datasource.username = root

spring.datasource.password = wms@123

SpringBoot 连接Oracle单机和RAC

标签:host   failover   edr   classname   res   lan   led   url   jdbc   

人气教程排行