<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oracle Berkeley DB 中国研发团队的博客 &#187; chaohuang</title>
	<atom:link href="http://www.bdbchina.com/author/chaohuang/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bdbchina.com</link>
	<description>Oracle Berkeley DB 中国研发团队的博客</description>
	<lastBuildDate>Fri, 09 Jul 2010 06:44:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>使用Oracle Berkeley DB实现空间数据库</title>
		<link>http://www.bdbchina.com/2010/07/%e4%bd%bf%e7%94%a8oracle-berkeley-db%e5%ae%9e%e7%8e%b0%e7%a9%ba%e9%97%b4%e6%95%b0%e6%8d%ae%e5%ba%93/</link>
		<comments>http://www.bdbchina.com/2010/07/%e4%bd%bf%e7%94%a8oracle-berkeley-db%e5%ae%9e%e7%8e%b0%e7%a9%ba%e9%97%b4%e6%95%b0%e6%8d%ae%e5%ba%93/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 02:10:18 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB]]></category>
		<category><![CDATA[Berkeley DB JE]]></category>
		<category><![CDATA[Chao Huang]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[bdb]]></category>
		<category><![CDATA[JE]]></category>
		<category><![CDATA[spatial]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/?p=1332</guid>
		<description><![CDATA[关于使用Oracle Berkeley DB作为空间数据库的引擎，可以参考如下资料：
* 使用基于Key/Value 接口的场合，可以考虑Berkeley DB C版本或者Berkeley DB Java 版的产品。可以参考美国University of Virginia的叫做PRIDE的学术论文：http://www.cs.virginia.edu/~stankovic/psfiles/pride.pdf
* 使用Oracle Berkeley DB SQL产品中的R*Tree功能，具体可以参考：http://www.bdbchina.com/2010/04/bdb11gr2的r-tree功能/
更多反馈，欢迎留言。
]]></description>
			<content:encoded><![CDATA[<p>关于使用Oracle Berkeley DB作为空间数据库的引擎，可以参考如下资料：</p>
<p>* 使用基于Key/Value 接口的场合，可以考虑Berkeley DB C版本或者Berkeley DB Java 版的产品。可以参考美国University of Virginia的叫做PRIDE的学术论文：<a href="http://www.cs.virginia.edu/~stankovic/psfiles/pride.pdf">http://www.cs.virginia.edu/~stankovic/psfiles/pride.pdf</a></p>
<p>* 使用Oracle Berkeley DB SQL产品中的R*Tree功能，具体可以参考：<a href="http://www.bdbchina.com/2010/04/bdb11gr2%E7%9A%84r-tree%E5%8A%9F%E8%83%BD/">http://www.bdbchina.com/2010/04/bdb11gr2的r-tree功能/</a></p>
<p>更多反馈，欢迎留言。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/07/%e4%bd%bf%e7%94%a8oracle-berkeley-db%e5%ae%9e%e7%8e%b0%e7%a9%ba%e9%97%b4%e6%95%b0%e6%8d%ae%e5%ba%93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Berkeley DB加入SQLite联盟</title>
		<link>http://www.bdbchina.com/2010/07/oracle-berkeley-db%e5%8a%a0%e5%85%a5sqlite%e8%81%94%e7%9b%9f/</link>
		<comments>http://www.bdbchina.com/2010/07/oracle-berkeley-db%e5%8a%a0%e5%85%a5sqlite%e8%81%94%e7%9b%9f/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 02:01:02 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB]]></category>
		<category><![CDATA[Chao Huang]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/?p=1330</guid>
		<description><![CDATA[我很高兴的宣布，Oracle Berkeley DB正式加入SQLite联盟，成为SQLite赞助商的一员！
我想这将是一个双赢的结果，对于SQLite的发展而言是积极的，得到更多来自厂商的支持；对于使用Oracle Berkeley DB SQL用户而言，我们的SQL接口将和SQLite发展保持一致，所有Berkeley DB (及其使用的SQLite接口)的问题和反馈都可以通过Oracle来得到支持和解决。
更多关于Oracle Berkeley DB SQL的信息，请访问：
* http://www.bdbchina.com/2010/03/oracle-berkeley-db-支持sql啦！/
* http://www.oracle.com/us/products/database/berkeley-db/index.html
跟多关于SQLite的信息，请访问：
* http://sqlite.org/
]]></description>
			<content:encoded><![CDATA[<p>我很高兴的宣布，Oracle Berkeley DB正式加入SQLite联盟，成为SQLite赞助商的一员！</p>
<p>我想这将是一个双赢的结果，对于SQLite的发展而言是积极的，得到更多来自厂商的支持；对于使用Oracle Berkeley DB SQL用户而言，我们的SQL接口将和SQLite发展保持一致，所有Berkeley DB (及其使用的SQLite接口)的问题和反馈都可以通过Oracle来得到支持和解决。</p>
<p>更多关于Oracle Berkeley DB SQL的信息，请访问：</p>
<p>* <a href="http://www.bdbchina.com/2010/03/oracle-berkeley-db-%E6%94%AF%E6%8C%81sql%E5%95%A6%EF%BC%81/">http://www.bdbchina.com/2010/03/oracle-berkeley-db-支持sql啦！/</a></p>
<p>* <a href="http://www.oracle.com/us/products/database/berkeley-db/index.html">http://www.oracle.com/us/products/database/berkeley-db/index.html</a></p>
<p>跟多关于SQLite的信息，请访问：</p>
<p>* <a href="http://sqlite.org/">http://sqlite.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/07/oracle-berkeley-db%e5%8a%a0%e5%85%a5sqlite%e8%81%94%e7%9b%9f/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>BDB-JE HA性能白皮书</title>
		<link>http://www.bdbchina.com/2010/07/bdb-je-ha%e6%80%a7%e8%83%bd%e7%99%bd%e7%9a%ae%e4%b9%a6/</link>
		<comments>http://www.bdbchina.com/2010/07/bdb-je-ha%e6%80%a7%e8%83%bd%e7%99%bd%e7%9a%ae%e4%b9%a6/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 01:43:07 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB JE]]></category>
		<category><![CDATA[Chao Huang]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/?p=1325</guid>
		<description><![CDATA[自从BDB-JE 4.0推出了高可用/集群的新特性，我们的工程师进一步做了关于在大型服务器上运行BDB-JE HA的性能测试。具体测试案例及结果数据可参考：http://www.oracle.com/technology/products/berkeley-db/pdf/BDB-JE-HighAvailability-WhitePaper-June2010.pdf。
这篇白皮书可以作为BDB-JE HA性能的参考，也可以作为测试选型BDB-JE HA的依据。需要注意的是， 性能数据依赖于很多因素的影响，我们的测试结果仅作参考。
同时，你可能发现附件中涉及到的关于GC和JVM参数的调整，对于性能的巨大影响。
希望能对您有用。更多反馈，欢迎留言。
]]></description>
			<content:encoded><![CDATA[<p>自从BDB-JE 4.0推出了高可用/集群的新特性，我们的工程师进一步做了关于在大型服务器上运行BDB-JE HA的性能测试。具体测试案例及结果数据可参考：http://www.oracle.com/technology/products/berkeley-db/pdf/BDB-JE-HighAvailability-WhitePaper-June2010.pdf。</p>
<p>这篇白皮书可以作为BDB-JE HA性能的参考，也可以作为测试选型BDB-JE HA的依据。需要注意的是， 性能数据依赖于很多因素的影响，我们的测试结果仅作参考。</p>
<p>同时，你可能发现附件中涉及到的关于GC和JVM参数的调整，对于性能的巨大影响。</p>
<p>希望能对您有用。更多反馈，欢迎留言。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/07/bdb-je-ha%e6%80%a7%e8%83%bd%e7%99%bd%e7%9a%ae%e4%b9%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Berkeley DB 支持SQL啦！</title>
		<link>http://www.bdbchina.com/2010/03/oracle-berkeley-db-%e6%94%af%e6%8c%81sql%e5%95%a6%ef%bc%81/</link>
		<comments>http://www.bdbchina.com/2010/03/oracle-berkeley-db-%e6%94%af%e6%8c%81sql%e5%95%a6%ef%bc%81/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 01:25:41 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB]]></category>
		<category><![CDATA[Chao Huang]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[bdb]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/?p=862</guid>
		<description><![CDATA[Oracle Berkeley DB将于2010年3月底发布最新版本Oracle Berkeley DB 11g release 2，具体版本号为 11.2.5.0.xx (xx代表具体的patch版本号)。
除了对原有Oracle Berkeley DB的功能进行了一定的改进和增强（比如提升了数据压缩功能、性能优化、C/C++中系统资源自动管理功能等等），本次发布的版本中最引人瞩目的变化是我们引入了一个有用的新特性——Oracle Berkeley DB SQL,简称DBSQL (纠正：将原BDBSQL纠正为DBSQL)。这是自Berkeley DB诞生20多年来第一次支持SQL接口。这无论是对开源社区，还是对嵌入式数据库行业来说，都将是一件喜事。在此也感谢整个Oracle Berkeley DB 研发团队的努力工作和大家的不断支持。
 
新的版本，新增的SQL接口，值得期待。    
Oracle Berkeley DB SQL接口简介

从Oracle Berkeley DB (简称BDB)诞生以来，它一直扮演着一个嵌入式、提供API调用的、高性能、非关系型的数据库引擎的角色, 被广泛应用于存储、金融、互联网、电子商务、汽车、消费电子、航空及国防等领域。简言之，它是一个1M大小的C语言类库，提供了基于键/值对（key/value pair）形式的并发和事务操作的API给C/C++/Java/C#/PHP等编程语言调用。由于BDB灵活高效的特点，它特别适合一些大数据量的、或者任务密集型的、或者硬件资源受限而性能要求高的嵌入式、跨平台等等的应用需求。
但我们发现，在很多场合对于关系数据库和SQL的需求是大量存在的。在 “edge”（如消费电子）或者一些大型的企业应用（如ERP）中，一个即时高效、并发的，支持SQL的、本地化嵌入式数据库通常是首选。因此，从 Oracle Berkeley DB 11g release 2开始，我们在保留原有基于key/value操作的API的同时，新增加了对SQL的支持。
DBSQL完全兼容SQLite（著名的嵌入式开源关系数据库）原有的编程接口。以往运行在SQLite上的程序和应用都可以无缝的、方便的迁移到 Oracle Berkeley DB这个更加强大的引擎。并且，Oracle Berkeley DB和SQLite还将进行长期的官方层面的合作，保证了Oracle Berkeley DB的SQL接口和SQLite保持一致，免除了用户的后顾之忧。此外，Berkeley DB SQL完美支持很多第三方的SQLite工具，如JDBC，ODBC，FireFox 3及其SQLite Manager 插件等。
就具体实现来说，在DBSQL中，我们将原SQLite的底层存储引擎替换为Berkeley DB的数据库引擎。如下图所示：

从上面的DBSQL实现图可以看到，Oracle Berkeley DB引入了SQLite的SQL层：包括用户接口（sqlite3(), [...]]]></description>
			<content:encoded><![CDATA[<p><tt>Oracle Berkeley DB将于2010年3月底发布最新版本Oracle Berkeley DB 11g release 2，具体版本号为 11.2.5.0.xx (xx代表具体的patch版本号)。</tt></p>
<p><tt>除了对原有Oracle Berkeley DB的功能进行了一定的改进和增强（比如提升了数据压缩功能、性能优化、C/C++中系统资源自动管理功能等等），本次发布的版本中最引人瞩目的变化是我们引入了一个有用的新特性——Oracle Berkeley DB SQL,简称DBSQL (纠正：将原<span style="text-decoration: line-through;">BDBSQL</span>纠正为DBSQL)。这是自Berkeley DB诞生20多年来第一次支持SQL接口。这无论是对开源社区，还是对嵌入式数据库行业来说，都将是一件喜事。在此也感谢整个Oracle Berkeley DB 研发团队的努力工作和大家的不断支持。<br />
</tt><tt> </tt></p>
<p><tt>新的版本，新增的SQL接口，值得期待。 <img src='http://www.bdbchina.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  <span id="more-862"></span><strong> </strong></tt></p>
<p><tt><strong>Oracle Berkeley DB SQL接口简介</strong><br />
</tt></p>
<p><tt>从Oracle Berkeley DB (简称BDB)诞生以来，它一直扮演着一个嵌入式、提供API调用的、高性能、非关系型的数据库引擎的角色, </tt><tt>被广泛应用于存储、金融、互联网、电子商务、汽车、消费电子、航空及国防等领域</tt><tt>。简言之，它是一个1M大小的C语言类库，提供了基于键/值对（key/value pair）形式的并发和事务操作的API给C/C++/Java/C#/PHP等编程语言调用。由于BDB灵活高效的特点，它特别适合一些大数据量的、或者任务密集型的、或者硬件资源受限而性能要求</tt><tt>高</tt><tt>的嵌入式、跨平台等等的应用需求。</tt></p>
<p><tt>但我们发现，在很多场合对于关系数据库和SQL的需求是大量存在的。在 “edge”（如消费电子）或者一些大型的企业应用（如ERP）中，一个即时高效、并发的，支持SQL的、本地化嵌入式数据库通常是首选。因此，从 Oracle Berkeley DB 11g release 2开始，我们在保留原有基于key/value操作的API的同时，新增加了对SQL的支持。</tt></p>
<p><tt>DBSQL完全兼容SQLite（著名的嵌入式开源关系数据库）原有的编程接口。以往运行在SQLite上的程序和应用都可以无缝的、方便的迁移到 Oracle Berkeley DB这个更加强大的引擎。并且，Oracle Berkeley DB和SQLite还将进行长期的官方层面的合作，保证了Oracle Berkeley DB的SQL接口和SQLite保持一致，免除了用户的后顾之忧。此外，Berkeley DB SQL完美支持很多第三方的SQLite工具，如JDBC，ODBC，FireFox 3及其SQLite Manager 插件等。</tt></p>
<p><tt>就具体实现来说，在DBSQL中，我们将原SQLite的底层存储引擎替换为Berkeley DB的数据库引擎。如下图所示：<br />
</tt></p>
<div id="attachment_864" class="wp-caption aligncenter" style="width: 372px"><tt><tt><a href="http://www.bdbchina.com/wp-content/uploads/2010/03/bdb-sql-architecture.jpg"><img class="size-full wp-image-864" title="Oracle Berkeley DB SQL 架构图" src="http://www.bdbchina.com/wp-content/uploads/2010/03/bdb-sql-architecture.jpg" alt="Oracle Berkeley DB SQL 架构图" width="362" height="289" /></a></tt></tt><p class="wp-caption-text">Oracle Berkeley DB SQL 架构图</p></div>
<p><tt>从上面的DBSQL实现图可以看到，Oracle Berkeley DB引入了SQLite的SQL层：包括用户接口（sqlite3(), ODBC, JDBC等）和SQL语言处理层（Tokenizer、Parser及Generator），而底层引擎（虚拟机）则使用了BDB的存储引擎。从而，将原来SQLite基于数据库级别的并发提升一个级别 - 至BDB的基于页(Page)级别的并发，并可以利用BDB的更好的内存管理、数据和事务恢复功能、更多的扩展（如Berkeley DB的db_hotbackup、db_stat、db_archive等一系列命令行工具）。<br />
</tt></p>
<p><tt>Oracle Berkeley DB 11g release 2在主流平台经过了严格的、多重的测试和认证（每个平台涵盖以十万计的测试案例），测试平台包括Solaris、*nix、Windows系列(XP, 7, Mobile)、Android 2.0(及以上)、VxWorks等等。此外，我们还提供了大量工具和资料帮助用户熟悉这套最新接口。随版本一起发布的，包括SQLite到Oracle Berkeley DB数据迁移指南、JDBC/ODBC使用指南、全文检索（Full Text Search）向导、空间数据库（R*Tree）向导、Android平台上使用向导、数据库使用手册及调优向导、数据管理员手册、测试集、代码示例等完善的资料，进一步帮助用户放心地来使用我们的产品。了解更多SQLite的语法、API、命令行等帮助，还可以参考SQLite.org上的文档。</tt></p>
<p><tt>总结一下: DBSQL接口是一个1M大小的C语言类库，是一个高效并发的嵌入式数据库。它支持in-memory cache选项，某些场合可作为内存数据库的一个替代方案。它支持C/C++/Java/PHP等语言接口和通过JDBC/ODBC等驱动程序访问。它运行于Unix/POSIX、Windows家族、VxWorks、QNX、Android等平台。和SQLite一样，</tt><tt>它</tt><tt>支持SQL92标准。<br />
</tt></p>
<p><tt><strong>Berkeley DB SQL和SQLite使用上的区别</strong></tt></p>
<p><tt>a) 对于用户和开发人员来说，</tt><tt>这两个产品是没有区别的。它们在SQL语法、API、命令行交互、PRAGAMAs 等方面都是一致的。我认为，用户可以体验的显著区别有可能是性能和并发了 - 由于SQLite提供的是数据库级别的锁，而Berkeley DB  SQL是页(Page)级别的锁，因此后者在绝大多数测试中都会快很多 （如Insert, Update, Delete,  并发操作等）。但是，由于DBSQL提供的细粒度锁的机制，它又会带来一些额外的开销，一些极端的测试用例下会比SQLite慢上少许(但不明显)。并且对于这些极端测试的案例，我们一直在进行性能优化。</tt></p>
<p><tt>b) 对于已有的SQLite应用程序和</tt><tt>工具而言，由于这两者在调用接口都是一致的，因而都可以无缝支持。</tt></p>
<p><tt>c) 对于DBA人员来说，</tt><tt>除了可以继续使用SQLite原来的管理工具，您还可以使用BDB提供</tt><tt>的db_hotbackup、db_stat、db_archive等一系列命令行工具来备份，监控，升级等。另外，您还可以联系Oracle寻求支持。<br />
</tt></p>
<p><tt>总体而言，</tt><tt>我们有充分理由相信</tt><tt>Oracle Berkeley DB  SQL将会比SQLite更快，更稳定。同时，我们也将会提供更好的支持服务。</tt></p>
<p><tt><strong>DBSQL接口和BDB key/value接口的比较</strong><br />
</tt></p>
<p><tt>我们举个例子说明这两套API在开发上的区别。</tt></p>
<p><tt>假设有一个employee的BDB数据库（注：一个BDB的数据库，即相当于关系型数据库中的一张二维表），我们定义其主键字段为：key{empId, email}，定义其value包含字段：value{empName, sex, age,  startDate, status}。相应的，对应于Oracle 关系型数据库的表结构为：<br />
</tt></p>
<blockquote><p><tt>TABLE: employee {<br />
</tt><tt>empId PRIMARY KEY,<br />
</tt><tt> email </tt><tt>PRIMARY KEY,<br />
</tt><tt> empName,<br />
</tt><tt> sex,<br />
</tt><tt> age,<br />
</tt><tt> startDate,<br />
</tt><tt> status<br />
</tt><tt>}</tt></p></blockquote>
<p><tt>接下来，对于数据库的操作，在BDB的语法大致为：<br />
- </tt><tt>要插入一条记录，</tt><tt>employeeDatabase.put(key{1000, <a href="mailto:john.smith@foo.com">john.smith@foo.com</a>},  value{'John Smith', 'male', 30, 2005-01-01, 'OK'});<br />
- 随后，如果要更新上面那条记录：</tt><tt>employeeDatabase.put(key{1000, <a href="mailto:john.smith@foo.com">john.smith@foo.com</a>},  value{'John Smith', 'male', 60, 2005-01-01, 'Retired'});<br />
- 如果删除该条记录，则：</tt><tt>employeeDatabase.delete(</tt><tt>key{1000, <a href="mailto:john.smith@foo.com">john.smith@foo.com</a>}</tt><tt>);  // 此处只需要提供key即可<br />
- 查询记录：</tt><tt>employeeDatabase.get(</tt><tt>key{1000, <a href="mailto:john.smith@foo.com">john.smith@foo.com</a>}</tt><tt>);  // 此处只需要提供key即可</tt></p>
<p><tt>在DBSQL中，上面的增删改操作都可以通过标准的SQL语言来进行。如更新一条记录，可写成：</tt></p>
<p style="padding-left: 30px;"><tt>update employee set age=60, status='Retired' where empId=1000 and email='john.smith@foo.com';</tt></p>
<p><tt><strong>总结</strong><br />
</tt></p>
<p><tt>最后，需要强调的是，DBSQL是作为对BDB已有功能的一个补充而不是替代。</tt><tt>它只是本次BDB发布产品的一个新特性，并且将会像Hash、Queue、集群等功能一样持续下去。</tt><tt>它的出现在一定程度上更丰富了BDB的应用场景。用户可以根据自己的需要，选择适合的BDB接口：</tt></p>
<ul>
<li><tt>当用户需要非常高的性能，管理非关系型数据，或者以Queue、Hash等方式来组织和访问数据的时候，可以继续选择 Oracle  Berkeley DB的既有key/value  API。如大型企业系统中单点登录、消息队列、工作流等模块，如管理XML、声音、照片、视频等场合，如SOA中的BAM模块、业务规则引擎，如云计算或者云存储节点上，等等。</tt></li>
<li><tt>而在用户需要一个本地持久化的支持SQL的嵌入式数据库时，DBSQL将成为优先的选择。比如，手机的通讯录、个人web站点、桌面端 的应用（如股票软件、浏览器客户端的缓存和存储）及开发工具（如IDE）、中小企业的数据库系统、企业实时系统的一些缓存模块、小型的关系型内存数据库等 等。</tt></li>
</ul>
<p><tt>正式版本的Oracle Berkeley DB 11g release 2将于2010年3月底发布。Oracle Berkeley DB整个产品家族继续以开源形式发布，并对开源社区提供支持。更多</tt><tt>关于</tt><tt>Oracle Berkeley DB 11g release 2的新功能和特性，请关注我们的官方网站（</tt><tt>http://www.oracle.com/database/berkeley-db/index.html</tt><tt>）或者本博客的后续文章。</tt></p>
<p><tt>请至官方网站下载最新版本的Oracle Berkeley DB数据库系列产品，包括Oracle Berkeley DB （及SQL），Oracle Berkeley DB Java版和Oracle Berkeley DB XML数据库。<br />
</tt></p>
<p><tt>更多需求和反馈，欢迎留言或者给我发邮件：chao.huang[at]oracle.com。</tt></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/03/oracle-berkeley-db-%e6%94%af%e6%8c%81sql%e5%95%a6%ef%bc%81/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>更多关于Oracle Berkeley DB SQL的报道</title>
		<link>http://www.bdbchina.com/2010/03/%e6%9b%b4%e5%a4%9a%e5%85%b3%e4%ba%8eoracle-berkeley-db-sql%e7%9a%84%e6%8a%a5%e9%81%93/</link>
		<comments>http://www.bdbchina.com/2010/03/%e6%9b%b4%e5%a4%9a%e5%85%b3%e4%ba%8eoracle-berkeley-db-sql%e7%9a%84%e6%8a%a5%e9%81%93/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 01:17:56 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB]]></category>
		<category><![CDATA[Chao Huang]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[bdb]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/?p=923</guid>
		<description><![CDATA[Oracle Berkeley DB 11g release   2即将发布，更多的用户可能会关心其SQL接口的一些具体衡量指标，包括性能、并发性、可扩展性以及客户反馈（包括开源社区和合作伙伴等）。下面是我目前收集到的信息，希望能对大家有用。
内部测试数据（总的指标，包括Berkeley DB以及SQL）：

性能：

约以万计(10s of thousands)的Insert/Update/Delete每秒；
约以十万计(100s of thousands)的Select每秒；
约比native SQLite快3倍；
有些极端测试比SQLite慢，但在一个数量级别。


并发性

细粒度的锁（Page level locking），保证了更好的并行读/写；
TPC-B测试显示，多线程的情形下（比单线程）快6-8倍；
支持数据库运行中的进行数据压缩（database online compact）。


可扩展性

单个数据库支持TB级别的数据量；
支持多节点集群。


数据同步

可以通过Oracle Mobile Server 10.3向企业端的大型Oracle数据库进行同步；
Xcsdasd 的同步客户端。


SQL功能集

SQLite3 API, SQL92标准；
ODBC，JDBC标准；
支持Full-Text Search 和R*Tree （Spatial，空间数据库）。


运行平台

Windows Mobile, 2000, XP, 7

Andriod
VxWorks
Linux, Solaris, HP/UX and virtually any *nix variant




注意：由于测试不具有代表性和平台环境等差异，这些指标仅供大家参考。


合作伙伴及用户反馈：

Mike Owens, “The Definitive Guide to SQLite”一书的作者：

Oracle Berkeley DB's new SQLite compatibly offers powerful features for its users and the [...]]]></description>
			<content:encoded><![CDATA[<p><tt>Oracle Berkeley DB 11g release   2即将发布，更多的用户可能会关心其SQL接口的一些具体衡量指标，包括性能、并发性、可扩展性以及客户反馈（包括开源社区和合作伙伴等）。下面是</tt><tt>我</tt><tt>目前收集到的信息，希望能对大家有用。</tt></p>
<h3><strong><tt>内部测试</tt><tt>数据</tt></strong><tt><strong>（总的指标，包括Berkeley DB以及SQL）：</strong></tt></h3>
<ul>
<li><tt>性能：</tt>
<ul>
<li><tt>约以万计(10s of thousands)的Insert/Update/Delete每秒；</tt></li>
<li><tt>约以十万计(100s of thousands)的Select每秒；</tt></li>
<li><tt>约比native SQLite快3倍；</tt></li>
<li><tt>有些极端测试比SQLite慢，但在一个数量级别。</tt></li>
</ul>
</li>
<li><tt>并发性</tt>
<ul>
<li><tt>细粒度的锁（Page level locking），保证了更好的并行读/写；</tt></li>
<li><tt>TPC-B测试显示，</tt><tt>多线程的情形下（比单线程）快6-8倍；</tt></li>
<li><tt>支持数据库运行中的进行数据压缩（database online compact）。</tt></li>
</ul>
</li>
<li><tt>可扩展性</tt>
<ul>
<li><tt>单个数据库支持TB级别的数据量；</tt></li>
<li><tt>支持多节点集群。</tt></li>
</ul>
</li>
<li><tt>数据同步</tt>
<ul>
<li><tt>可以通过</tt><tt>Oracle Mobile Server 10.3向企业端的大型Oracle数据库进行同步；</tt></li>
<li><tt>Xcsdasd 的同步客户端。</tt></li>
</ul>
</li>
<li><tt>SQL功能集</tt>
<ul>
<li><tt>SQLite3 API, SQL92标准；</tt></li>
<li><tt>ODBC，JDBC标准；</tt></li>
<li><tt>支持Full-Text Search 和R*Tree （Spatial，空间数据库）。</tt></li>
</ul>
</li>
<li><tt>运行平台</tt>
<ul>
<li><tt>Windows Mobile, 2000, XP, 7<br />
</tt></li>
<li><tt>Andriod</tt></li>
<li><tt>VxWorks</tt></li>
<li><tt>Linux, Solaris, HP/UX and virtually any *nix variant<br />
</tt></li>
</ul>
</li>
</ul>
<blockquote><p><tt><strong><em>注意：由于测试不具有代表性和平台环境等差异，这些指标仅供大家参考。</em></strong></tt></p>
<p><tt></tt></p></blockquote>
<p><span id="more-923"></span></p>
<h3><tt><strong>合作伙伴及用户反馈：</strong></tt></h3>
<ul>
<li><tt>Mike Owens, “The Definitive Guide to SQLite”一书的作者：</tt></li>
</ul>
<blockquote><p><tt>Oracle Berkeley DB's new SQLite compatibly offers powerful features for its users and the SQLite community at large. The combination of the two technologies provides developers with tremendous flexibility in a single SQL/API.  Oracle has done a fantastic job of integrating the technologies, and also being an exemplary participant in the open source community by contributing time, expertise and resources to the SQLite project.<br />
</tt></p></blockquote>
<ul>
<li><tt>Dr. Richard Hipp, SQLite 数据库的作者及架构师：</tt></li>
</ul>
<blockquote><p><tt>Oracle Berkeley DB 11g combines seamlessly the benefits of SQLite’s ubiquitous API with Berkeley DB’s concurrency and performance into an easy-to-use product. SQLite users can now benefit from enhanced concurrency and performance, and Oracle Berkeley DB users can now benefit from an easy-to-use SQL API.<br />
</tt></p></blockquote>
<ul>
<li><tt>Liam McLoughlin, Google Chromium OS的开发者：</tt></li>
</ul>
<blockquote><p><tt>In my experience Berkley DB 11gR2 is a fully drop-in replacement for SQLite3. I was hugely surprised at just how easy it was; I'd had zero experience in using Berkeley DB in products before, but within a couple hours I had my application powered by Berkeley DB. From there you get all the benefits of Berkeley DB including concurrency and long term stability compared to SQLite3 from an API you're already familiar with. It's quite simply amazing.<br />
</tt></p></blockquote>
<ul>
<li><tt>Marie-Anne Neimat, Oracle 数据库产品研发的VP（仿谷歌对VP的解释为：数据库研发全球副总裁）</tt></li>
</ul>
<blockquote><p><tt>Mobile applications and mobile infrastructure applications need fast, scalable and reliable storage services - yet must be self-managing and operate without administrators.  With new SQL capabilities and Android support, Oracle Berkeley DB 11g  makes it easier for developers to quickly develop and deploy new ‘edge’ applications that meet users high performance and scalability demands.<br />
</tt></p></blockquote>
<ul>
<li><tt>Marco Bambini, SQLabs的CEO</tt></li>
</ul>
<blockquote><p><tt>Berkeley DB 11gR2 combines the familiar SQLite API with the powerful, proven Berkeley DB data storage technology. I re-compiled my SQLiteManager product against the Berkeley DB library without any major issues in very little time. I have now a product that is fully able to manage BDB databases without changing a single line of my code. Performance and concurrency are excellent and I am thrilled to think about the future of this great product.</tt></p></blockquote>
<p><tt>最后，关于Oracle Berkeley DB 11g release 2</tt><tt>的</tt><tt>更多垂询，欢迎留言或者给我发邮件：chao.huang[at]oracle.com。请至官方网址：</tt><tt>http://www.oracle.com/database/berkeley-db/index.html 下载</tt><tt>Oracle Berkeley DB 11g release 2。</tt></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 833px; width: 1px; height: 1px; overflow: hidden;"><em>http://www.oracle.com/corporate/pricing/pricelists.html</em></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/03/%e6%9b%b4%e5%a4%9a%e5%85%b3%e4%ba%8eoracle-berkeley-db-sql%e7%9a%84%e6%8a%a5%e9%81%93/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Berkeley DB Java Edition Resources</title>
		<link>http://www.bdbchina.com/2010/02/berkeley-db-java-edition-resources/</link>
		<comments>http://www.bdbchina.com/2010/02/berkeley-db-java-edition-resources/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 11:09:49 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB JE]]></category>
		<category><![CDATA[David Zhao]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/?p=804</guid>
		<description><![CDATA[Resources

The Berkeley DB Java Edition FAQ  has useful tips and should be a first stop when trouble shooting problems.
You can find product information, datasheets, and whitepapers on  the JE home page on OTN.
All JE release images are on the JE download page.
The JE documentation page has Javadoc, Getting Started Guides and tutorials.
Here is [...]]]></description>
			<content:encoded><![CDATA[<h4>Resources</h4>
<ul>
<li>The <a href="http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html">Berkeley DB Java Edition FAQ </a> has useful tips and should be a first stop when trouble shooting problems.</li>
<li>You can find product information, datasheets, and whitepapers on <a href="http://www.oracle.com/technology/products/berkeley-db/je/index.html"> the JE home page on OTN.</a></li>
<li>All JE release images are on <a href="http://www.oracle.com/technology/software/products/berkeley-db/je/index.html">the JE download page.</a></li>
<li>The <a href="http://www.oracle.com/technology/documentation/berkeley-db/je/index.html">JE documentation page</a> has Javadoc, Getting Started Guides and tutorials.</li>
<li>Here is the <a href="http://www.oracle.com/technology/software/products/berkeley-db/htdocs/jeoslicense.html">JE License</a>.</li>
<li>Charles Lamb, a JE developer, <a href="http://blogs.oracle.com/charleslamb"> blogs</a> about usage tips, announcements, and developer anecdotes.</li>
<li>There&#8217;s a whitepaper called <a href="http://www.oracle.com/technology/products/berkeley-db/pdf/performing%20queries%20in%20oracle%20berkeley%20db%20java%20edition.pdf">Performing Queries in Oracle Berkeley DB Java Edition.</a> The whitepaper takes common SQL queries and shows how to execute the same logic using the Direct Persistence Layer (DPL). The goal is to give users who are familiar with SQL some help in learning how to use the DPL.</li>
<li>Chinese language JE blogs are available at www.bdbchina.com</li>
<li>Application source code examples are included as part of the Berkeley DB JE distribution in the examples directory.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/02/berkeley-db-java-edition-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Berkeley DB Java Edition Android/Google Maps Demo</title>
		<link>http://www.bdbchina.com/2010/02/berkeley-db-java-edition-androidgoogle-maps-demo/</link>
		<comments>http://www.bdbchina.com/2010/02/berkeley-db-java-edition-androidgoogle-maps-demo/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 11:06:03 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB JE]]></category>
		<category><![CDATA[Chao Huang]]></category>
		<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/?p=801</guid>
		<description><![CDATA[Thanks to Chris Eastland at Nebula Software Systems for the screen shot of this cool Google Maps/Android app built on BDB JE. The location data is stored in a JE database running on the device.
See the details at Charles Lamb&#8217;s blog at              [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to Chris Eastland at Nebula Software Systems for the screen shot of this cool Google Maps/Android app built on BDB JE. The location data is stored in a JE database running on the device.</p>
<p>See the details at Charles Lamb&#8217;s blog at                                         <a title="New window will open" href="http://www.linkedin.com/redirect?url=http%3A%2F%2Fblogs%2Eoracle%2Ecom%2FcharlesLamb%2F2010%2F02%2Fberkeley_db_java_edition_andro%2Ehtml&amp;urlhash=gH3q" target="_blank">http://blogs.oracle.com/charlesLamb/2010/02/berkeley_db_java_edition_andro.html</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/02/berkeley-db-java-edition-androidgoogle-maps-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Berkeley DB Java Edition/Android Whitepaper</title>
		<link>http://www.bdbchina.com/2010/02/berkeley-db-java-editionandroid-whitepaper/</link>
		<comments>http://www.bdbchina.com/2010/02/berkeley-db-java-editionandroid-whitepaper/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 11:04:26 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB JE]]></category>
		<category><![CDATA[Chao Huang]]></category>
		<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/?p=799</guid>
		<description><![CDATA[Charles Lamb (BDB-JE 架构师) 最近发表的一篇关于在Google Android运行Berkeley DB Java Edition的白皮书。书中简要描述了JE在在Android平台上运行的一些优势和特点，诸如性能，可扩展性，索引，并发控制，事务和多对多的 事物-线程映射模型。
原文地址： http://www.oracle.com/technology/products/berkeley-db/pdf/bdb-je-android.pdf .
]]></description>
			<content:encoded><![CDATA[<p>Charles Lamb (BDB-JE 架构师) 最近发表的一篇关于在Google Android运行Berkeley DB Java Edition的白皮书。书中简要描述了JE在在Android平台上运行的一些优势和特点，诸如性能，可扩展性，索引，并发控制，事务和多对多的 事物-线程映射模型。</p>
<p>原文地址： <a title="New window will open" href="http://www.linkedin.com/redirect?url=http%3A%2F%2Fwww%2Eoracle%2Ecom%2Ftechnology%2Fproducts%2Fberkeley-db%2Fpdf%2Fbdb-je-android%2Epdf&amp;urlhash=zko9" target="_blank">http://www.oracle.com/technology/products/berkeley-db/pdf/bdb-je-android.pdf</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/02/berkeley-db-java-editionandroid-whitepaper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Berkeley DB Java Edition: Handling Transactions in JE 4.0</title>
		<link>http://www.bdbchina.com/2010/02/berkeley-db-java-edition-handling-transactions-in-je-4-0/</link>
		<comments>http://www.bdbchina.com/2010/02/berkeley-db-java-edition-handling-transactions-in-je-4-0/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 10:56:02 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB JE]]></category>
		<category><![CDATA[Chao Huang]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/2010/02/berkeley-db-java-edition-handling-transactions-in-je-4-0/</guid>
		<description><![CDATA[In his blog (                                        http://blogs.sun.com/jhalex/entry/handling_transactions_in_bdb_je ), Jeff Alexander of Sun&#8217;s project Aura describes how they&#8217;ve standardized [...]]]></description>
			<content:encoded><![CDATA[<p>In his blog (                                        <a title="New window will open" href="http://www.linkedin.com/redirect?url=http%3A%2F%2Fblogs%2Esun%2Ecom%2Fjhalex%2Fentry%2Fhandling_transactions_in_bdb_je&amp;urlhash=UpNv" target="_blank">http://blogs.sun.com/jhalex/entry/handling_transactions_in_bdb_je</a> ), Jeff Alexander of Sun&#8217;s project Aura describes how they&#8217;ve standardized on a calling convention for JE which provides uniform, yet flexible, transaction and exception handling.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/02/berkeley-db-java-edition-handling-transactions-in-je-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在JSP中使用Berkeley DB Java Edition</title>
		<link>http://www.bdbchina.com/2010/02/%e5%9c%a8jsp%e4%b8%ad%e4%bd%bf%e7%94%a8berkeley-db-java-edition/</link>
		<comments>http://www.bdbchina.com/2010/02/%e5%9c%a8jsp%e4%b8%ad%e4%bd%bf%e7%94%a8berkeley-db-java-edition/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 10:49:31 +0000</pubDate>
		<dc:creator>chaohuang</dc:creator>
				<category><![CDATA[Berkeley DB JE]]></category>
		<category><![CDATA[Chao Huang]]></category>

		<guid isPermaLink="false">http://www.bdbchina.com/?p=793</guid>
		<description><![CDATA[有来自开源社区的BDB-JE用户写的一篇博客，介绍了如何在JSP中使用JE来存取Java对象。英文好的朋友或者项目中有类似需求的朋友，不妨看看。原文地址为：http://reecegriffin.com/blog/berkeleyje.html。
在这篇博客中，作者简要提到了最新的JE 4.0 发布的新特性 &#8211; Replication。简言之就是支持高可用或集群功能，并提供了软件和硬件层面的负载均衡。个人认为，JE 4.0的高可用功能绝对是任务密集型的、要求7×24小时高可用的J2EE应用项目中的利器啊。  
最后，欢迎留言。
]]></description>
			<content:encoded><![CDATA[<p>有来自开源社区的BDB-JE用户写的一篇博客，介绍了如何在JSP中使用JE来存取Java对象。英文好的朋友或者项目中有类似需求的朋友，不妨看看。原文地址为：http://reecegriffin.com/blog/berkeleyje.html。</p>
<p>在这篇博客中，作者简要提到了最新的JE 4.0 发布的新特性 &#8211; Replication。简言之就是支持高可用或集群功能，并提供了软件和硬件层面的负载均衡。个人认为，JE 4.0的高可用功能绝对是任务密集型的、要求7×24小时高可用的J2EE应用项目中的利器啊。 <img src='http://www.bdbchina.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>最后，欢迎留言。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdbchina.com/2010/02/%e5%9c%a8jsp%e4%b8%ad%e4%bd%bf%e7%94%a8berkeley-db-java-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
Դ