Sign up ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

When using JDBC I like the new DataSource-way to establish the connection. Further I like the isolated set-Methods for the properties like setUser, setPassword, setDriverType, setServerName, setNetworkProtocol, setDatabaseName, setPortNumber and so on.
The question is (esp. for the use with Oracle), if there is a way to set up LoadBalancing with two or more servers without specifying the URL directly with


for example.

share|improve this question
Maybe someone could add the tags datasource, load-balancing and connection? Thanks. –  Bastian Ebeling Feb 15 '13 at 11:31
It's easier to do it using tnsnames.ora, but that doesn't answer your question ;) –  Phil Feb 15 '13 at 11:47

1 Answer 1

Thin client can also use alias defined in tnsnames.ora. In java call set

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.