SpringBoot 连接Oracle单机和RAC
Posted chjjava
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SpringBoot 连接Oracle单机和RAC相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
Goldengate 部署oracle10g在 rac asm环境,完整教程