Resolve ORA-12505: Using Oracle RAC and Java JDBC thin client Connection
If you have Java application and use JDBC to connect to Oracle database, typically you use the following format to connect:
jdbc:oracle:thin:@<HOST>:<PORT>:<SID>However, this would not work if you have Oracle RAC database. Following is the correct JDBC connection string for connecting to a RAC database