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=密码