What would be the best way to find oracle home and tnsnames.ora from java?
Actually i am trying to get a list of tns entries and display it in program combobox.
What would be the best way to find oracle home and tnsnames.ora from java?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no some automatic search. If you want Oracle’s JDBC driver to use your tns names, you have to define system property (-D)
oracle.net.tns_admin=<directory where tnsnames.ora is located>. I recommend setting it up so you can use it andojdbcwill be use it too (if needed)