Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: JDBC connection using externally identified user
Hi,
I hit the same issue and after I allowed the database to allow remote OS
authentication this worked in 10.2.0.3:
class testcon{
public static void main(String args[]) throws SQLException {
OracleDataSource ods = new OracleDataSource(); String url = "jdbc:oracle:oci:@<YOUR_SID>"; ods.setURL(url); ods.setUser(""); ods.setPassword("");
.
.
.}
Using the DriverManager it can look like this:
.
.
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn=DriverManager.getConnection("jdbc:oracle:oci:/@<YOUR_SID>");
.
.
Regards
Pete
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Oct 26 2007 - 04:13:46 CDT