k****a 发帖数: 10 | 1 Does OracleDriver support setting up the
userID and password in the URL string?
so when making the connection, no userID
and password are needed to passed?
it could be done with ODBC, but I tried
with both DB2 and Oracle, won't work.
I could not find the answer in oracle specs
or the JDBC specs :(
please help... | c******v 发帖数: 6 | 2
It does, in a way. try
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection(url,
"username", "password");
good luck.
【在 k****a 的大作中提到】 : Does OracleDriver support setting up the : userID and password in the URL string? : so when making the connection, no userID : and password are needed to passed? : it could be done with ODBC, but I tried : with both DB2 and Oracle, won't work. : I could not find the answer in oracle specs : or the JDBC specs :( : please help...
| k****a 发帖数: 10 | 3 ft, i don't mean this traditional way of
getting connection
u did not quite get my point
my question is in connection pooling,
u set the URL in a datasource, u don't set
URL in ur code...
any ideas?
thx:)
【在 c******v 的大作中提到】 : : It does, in a way. try : DriverManager.registerDriver(new : oracle.jdbc.driver.OracleDriver()); : Connection conn = DriverManager.getConnection(url, : "username", "password"); : good luck.
|
|