连接池问题

chenhangbing 2006-05-20 10:16:08
ORACLE数据库里连接池的连接字符串要怎么写?请高手指点。
...全文
138 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
buoll 2006-08-01
  • 打赏
  • 举报
回复
for example:

OracleConnectionCacheImpl ods = new OracleConnectionCacheImpl();
ods.setURL("jdbc:oracle:thin:@//192.168.0.31:1521/uptestb");
ods.setUser("test");
ods.setPassword("test");

// Set the Max Limit
ods.setMaxLimit (3);

Connection conn = null;
conn = ods.getConnection();

Statement stmt = conn.createStatement();

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧