How can I find out the URL and port for an Oracle database?
Example:
“jdbc:oracle:thin:@host:port:dbName”,”userName”, “password”);
Is there an SQL command or log/configuration file I can look at?
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.
With oracle, there is a
tnsnames.orafile which defines database addresses. This file is normally found in$ORACLE_HOME/network/adminand is used by oracle clients like sqlplus or Toad. Here is a sample tns entry:From this entry you can work out that your jdbc connection string would be: