Oracle uses c3p0 to configure the cluster method

 

oracle.driver=oracle.jdbc.driver.OracleDriver
oracle.url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.32)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.33)(PORT = 1521))(LOAD_BALANCE = yes)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = SHOP)(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 5))))
oracle.username=oracle
oracle.password=oracle123

 

 

HOST is followed by the ip address. If there are more than 2, it can be configured in a similar format.

Note that when configuring, remove the newline character, and write this long string of characters on one line.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326116448&siteId=291194637