Redian新闻
>
Question about Oracle Driver
avatar
Question about Oracle Driver# Database - 数据库
k*a
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...
avatar
c*v
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...

avatar
k*a
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。