Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2011

    Unanswered: Problem in connecting to the oracle

    I am getting some error like "java.sql.SQLException: Io exception: The Network Adapter could not establish the connection".
    i have given proper user name and pwd but still am not able to connect it.
    Can anyone help me??

    package orac;
    //package com.orac.util;

    import java.sql.Connection;
    import java.sql.DriverManager;
    //import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;

    public class Oraclecall1 {
    public static Connection getOracleConnection()throws ClassNotFoundException,SQLException{
    Connection connection = DriverManager.getConnection("jdbcracle:thin:uslaxorcstgdb13:1523:HLTS4","XXHL","XXH LTS4");
    return connection;

    public static void closeConnection(Connection pConnection,Statement pStatement)throws SQLException{
    if(pStatement != null){
    if(pConnection != null){


  2. #2
    Join Date
    Aug 2003
    Where the Surf Meets the Turf @Del Mar, CA
    Provided Answers: 1
    can you connect to DB using different client and same connection details?

    post Oracle error code & message resulting from failed request
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts