oracle - Spring Boot properties: Load Balanced datasource -
i have following definition of datasource:
spring.datasource.url = jdbc:oracle:thin:@ (description = \ (address_list = \ (address = (protocol = tcp)(host = some-db-server)(port = 1521)) \ (address = (protocol = tcp)(host = some-db-other)(port = 1521)) \ (load_balance = yes) \ ) \ (connect_data = \ (service_name = my.service) \ ) \ )
and seems not work. when first server not answer, second 1 not take function , causes error on startup.
is there way define such datasource?
as far doc puts it: http://docs.oracle.com/cd/b28359_01/java.111/e10788/rac.htm#chdhcggg
you seem have error in statement: load_balance = yes
seems should be: load_balance = on
below full sample connection string:
jdbc:oracle:thin@(description= (load_balance=on) (address=(protocol=tcp)(host=racnode1) (port=1521)) (address=(protocol=tcp)(host=racnode2) (port=1521)) (connect_data=(service_name=service_name)))
Comments
Post a Comment