TCPS and SSLv2Hello

Thanks to platform independence, the same java code work on different platforms.

import java.util.Properties;
import java.sql.*;

public class KeyStore {
  public static void main(String argv[]) 
      throws SQLException {
    String url="jdbc:oracle:thin:@(DESCRIPTION="+
    Properties props = new Properties();
    props.setProperty("user", "scott");
    props.setProperty("password", "tiger");
      new oracle.jdbc.OracleDriver());
    Connection conn = 
      DriverManager.getConnection(url, props);
    ResultSet res = conn.prepareCall("select "+
       "') txt from dual").
    System.out.println("PROTOCOL: "+

The code above perfectly works with Linux and Windows.

Okay, in AIX you will get IllegalArgumentException SSLv2Hello at if you don’t add


The default does not work with the Oracle AIX client. Just set it to 1.0 and 3.0 and you will be a bit less plateform-dependent

1 Comment

Leave a Reply

Your email address will not be published.