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{
System.out.println("Before");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection connection = DriverManager.getConnection("jdbc

racle:thin:usla xorcstgdb13:1523:HLTS4","XXHL","XXHLTS4");
System.out.println(connection);
return connection;
}
public static void closeConnection(Connection pConnection,Statement pStatement)throws SQLException{
if(pStatement != null){
pStatement.close();
}
if(pConnection != null){
pConnection.close();
}
}
}