Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Thin JDBC driver and Oracle 7.3.2 "null password"

Re: Thin JDBC driver and Oracle 7.3.2 "null password"

From: Mohammed Salah Oka <msoka_at_clio.ch>
Date: 1998/11/25
Message-ID: <73gksn$le$1@ubnnews.unisource.ch>#1/1

this is the method i wrote to do the same thing. we are actualy under the same vertion of u but the oracle serveur is HP Unix

!!! depending of the structure of youre database you may have to add some elements in the properties Table

public Connection connect() {

     Connection temp = null;
      String url = "jdbc:oracle:thin:@10.0.0.30:1521:orcl";
     java.util.Properties info=new java.util.Properties();
     info.put( "user","cers");
     info.put( "password","CeRs");
     try {
        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver
());
        temp = DriverManager.getConnection(url,info);
       return temp;
     }
      catch(Exception ex) {
           return null;
      }

} Received on Wed Nov 25 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US