| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Thin JDBC driver and Oracle 7.3.2 "null password"
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;
}
![]() |
![]() |