title: JDBC connection from eclipse not working, but working in Oracle SQL developer
body: <p>I'm trying to connect into DB via JDBC</p>
  
  <pre><code>Class.forName("oracle.jdbc.driver.OracleDriver");
  String url="jdbc:oracle:thin:@host_name:port:service_name"; //Changed the host_name, port and service_name for confidentiality
  String username = "user_name"; // Changed the user_name
  String password = "my_password"; //Changed the password  
  Connection conn = DriverManager.getConnection(url, username, password);
  </code></pre>
  
  <p>Got the below exception</p>
  
  <pre><code>java.sql.SQLException: Listener refused the connection with the following error:
  ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
  The Connection descriptor used by the client was:
  </code></pre>
  
  <p>But at the same time, I could connect via Oracle SQL developer. </p>
  
  <p>Note- My service_name consists of "." and "_" and My host_name contains "."</p>
  
  <p>Please help here!</p>