如何使用JDBC连接到Berkeley DB? [英] How to connect to a Berkeley DB using JDBC?

查看:162
本文介绍了如何使用JDBC连接到Berkeley DB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地文件夹上有一个Berkeley DB,我想通过JDBC连接到它.特别是通过 Zentus SqliteJDBC .

I have a Berkeley DB on a local folder and I'd like to connect to it via JDBC. Specifically via Zentus SqliteJDBC.

我的问题是连接字符串("url"). sqlite连接字符串可能类似于:"jdbc:sqlite:c:\\path\\to\\database.db",但Berkeley DB没有单个.db文件可引用.相反,我看到了组成数据库的多个.jdb文件.

My problem is with the connection string ("url"). While a sqlite connection string might look like: "jdbc:sqlite:c:\\path\\to\\database.db", Berkeley DB does not have a single .db file to refer to. Instead, I see multiple .jdb files that make up the DB.

我的问题是-我的连接字符串应该是什么样的?

My questions is - What should my connection string look like?

推荐答案

Berkeley DB已通过CH-Werner JDBC驱动程序认证. Zentus驱动程序和Ch-Werner驱动程序之间的主要区别是Zentus驱动程序是完整的Java实现,而Ch-Werner是带有JNI层的C实现.

Berkeley DB is certified against the CH-Werner JDBC driver. The primary differences between the Zentus driver and the Ch-Werner driver is the Zentus driver is a full java implementation while the Ch-Werner is a C implementation with a JNI layer.

您可以在BDB论坛上发布您的问题,并且可能有人可能有与Zentus驱动程序连接的特定说明.由于技术原因,这将不起作用.

You can post your question over on the BDB forums and it is possible that someone might have the specific instructions for connection with the Zentus driver. There is technological reason why this would not work.

BDB构建和安装指南包含有关如何与Ch-Werner驱动程序连接的特定说明.请参见 http://docs.oracle.com/cd/E17076_02/html/安装/index.html .第5节包含有关Windows构建的信息,第7节包含有关Linux构建的信息.查找构建/使用JDBC驱动程序.

The BDB build and installation guide has specific instructions on how to connect with Ch-Werner driver. See http://docs.oracle.com/cd/E17076_02/html/installation/index.html. Section 5 has info on building for Windows and section 7 has info on building for Linux. Look for building/using the JDBC driver.

这篇关于如何使用JDBC连接到Berkeley DB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆