1.RAC集群数据库连库代码示例(jdbc thin方式,非oci):
jdbc.driverClassName=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@(description =(address=(protocol=tcp)(host=实例1vip)(port=1521))(address=(protocol=tcp)(host=实例2vip)(port=1521))(load_balance = yes)(failover = on)(connect_data=(server=dedicated)(service_name=服务名))(failover_mode =(type = select)(method = basic)(retries = 180)(delay = 5)))
jdbc.username=数据库用户名
jdbc.password=密码

版权声明:本文为Dev0ps原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/Dev0ps/p/9569886.html