<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>评论：BDB C# API初探</title>
	<atom:link href="http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/</link>
	<description>Oracle Berkeley DB 中国研发团队的博客</description>
	<lastBuildDate>Thu, 15 Dec 2011 10:53:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：傅翠云</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-2/#comment-1567</link>
		<dc:creator>傅翠云</dc:creator>
		<pubDate>Wed, 24 Nov 2010 03:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-1567</guid>
		<description>你好，如果有两个project没有编译，请打开build_windows/BDB_dotNet.sln，进行编译。</description>
		<content:encoded><![CDATA[<p>你好，如果有两个project没有编译，请打开build_windows/BDB_dotNet.sln，进行编译。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：belcon</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-2/#comment-1515</link>
		<dc:creator>belcon</dc:creator>
		<pubDate>Sat, 13 Nov 2010 18:17:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-1515</guid>
		<description>@傅翠云

db.vcproj and db_csharp.vcproj被忽略，不仅仅是4.8.30,5.1.19同样如此，造成了在vs下面利用debug模式调试excs_access的时候,会出一个exception:{&quot;The type initializer for &#039;BerkeleyDB.Internal.libdb_csharpPINVOKE&#039; threw an exception.&quot;},
stack as below:
   at BerkeleyDB.Internal.libdb_csharpPINVOKE.new_DB(HandleRef jarg1, UInt32 jarg2)
   at BerkeleyDB.Internal.DB..ctor(DB_ENV env, UInt32 flags) in C:\belcon\program\db-5.1.19\lang\csharp\src\Internal\DB.cs:line 109
   at BerkeleyDB.BaseDatabase..ctor(DatabaseEnvironment envp, UInt32 flags) in C:\belcon\program\db-5.1.19\lang\csharp\src\BaseDatabase.cs:line 41
   at BerkeleyDB.Database..ctor(DatabaseEnvironment env, UInt32 flags) in C:\belcon\program\db-5.1.19\lang\csharp\src\Database.cs:line 29
   at BerkeleyDB.BTreeDatabase..ctor(DatabaseEnvironment env, UInt32 flags) in C:\belcon\program\db-5.1.19\lang\csharp\src\BTreeDatabase.cs:line 30
   at BerkeleyDB.BTreeDatabase.Open(String Filename, String DatabaseName, BTreeDatabaseConfig cfg, Transaction txn) in C:\belcon\program\db-5.1.19\lang\csharp\src\BTreeDatabase.cs:line 228
   at BerkeleyDB.BTreeDatabase.Open(String Filename, BTreeDatabaseConfig cfg) in C:\belcon\program\db-5.1.19\lang\csharp\src\BTreeDatabase.cs:line 97
   at excs_access.Program.Main(String[] args) in C:\belcon\program\db-5.1.19\examples\csharp\excs_access\excs_access.cs:line 94
我猜想应该是这两个projects没有被编译的原因，不知道有什么办法可以解决这个问题。
如果单独执行excs_access.exe则没有问题</description>
		<content:encoded><![CDATA[<p>@傅翠云</p>
<p>db.vcproj and db_csharp.vcproj被忽略，不仅仅是4.8.30,5.1.19同样如此，造成了在vs下面利用debug模式调试excs_access的时候,会出一个exception:{&#8220;The type initializer for &#8216;BerkeleyDB.Internal.libdb_csharpPINVOKE&#8217; threw an exception.&#8221;},<br />
stack as below:<br />
   at BerkeleyDB.Internal.libdb_csharpPINVOKE.new_DB(HandleRef jarg1, UInt32 jarg2)<br />
   at BerkeleyDB.Internal.DB..ctor(DB_ENV env, UInt32 flags) in C:\belcon\program\db-5.1.19\lang\csharp\src\Internal\DB.cs:line 109<br />
   at BerkeleyDB.BaseDatabase..ctor(DatabaseEnvironment envp, UInt32 flags) in C:\belcon\program\db-5.1.19\lang\csharp\src\BaseDatabase.cs:line 41<br />
   at BerkeleyDB.Database..ctor(DatabaseEnvironment env, UInt32 flags) in C:\belcon\program\db-5.1.19\lang\csharp\src\Database.cs:line 29<br />
   at BerkeleyDB.BTreeDatabase..ctor(DatabaseEnvironment env, UInt32 flags) in C:\belcon\program\db-5.1.19\lang\csharp\src\BTreeDatabase.cs:line 30<br />
   at BerkeleyDB.BTreeDatabase.Open(String Filename, String DatabaseName, BTreeDatabaseConfig cfg, Transaction txn) in C:\belcon\program\db-5.1.19\lang\csharp\src\BTreeDatabase.cs:line 228<br />
   at BerkeleyDB.BTreeDatabase.Open(String Filename, BTreeDatabaseConfig cfg) in C:\belcon\program\db-5.1.19\lang\csharp\src\BTreeDatabase.cs:line 97<br />
   at excs_access.Program.Main(String[] args) in C:\belcon\program\db-5.1.19\examples\csharp\excs_access\excs_access.cs:line 94<br />
我猜想应该是这两个projects没有被编译的原因，不知道有什么办法可以解决这个问题。<br />
如果单独执行excs_access.exe则没有问题</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：乌鸦精</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-2/#comment-1375</link>
		<dc:creator>乌鸦精</dc:creator>
		<pubDate>Thu, 02 Sep 2010 09:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-1375</guid>
		<description>版主你好：
      数据库损坏我做了处理机制  我现在还在测试阶段 数据库损坏的频率好像还是蛮高的 几天就会有一次 因为我处理的数据 是批量的 所以采用的数据库连接对象是公用的 打个一个连接 这个连接也许会持续一个小时 读取或者写入数据大概有几百万 同时最大开启48个连接 会不会因为是这个原因造成数据库损坏的了

还有就是写入报错 才try 中都无法捕获异常 在调试模式下也是 在写入数据的时候 应该是数据库损坏造成的
提示的小窗口的内容是 
this application has requested the runtime to terminnate it an unusual way please contact the application&#039;s support team for more information</description>
		<content:encoded><![CDATA[<p>版主你好：<br />
      数据库损坏我做了处理机制  我现在还在测试阶段 数据库损坏的频率好像还是蛮高的 几天就会有一次 因为我处理的数据 是批量的 所以采用的数据库连接对象是公用的 打个一个连接 这个连接也许会持续一个小时 读取或者写入数据大概有几百万 同时最大开启48个连接 会不会因为是这个原因造成数据库损坏的了</p>
<p>还有就是写入报错 才try 中都无法捕获异常 在调试模式下也是 在写入数据的时候 应该是数据库损坏造成的<br />
提示的小窗口的内容是<br />
this application has requested the runtime to terminnate it an unusual way please contact the application&#8217;s support team for more information</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：傅翠云</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-2/#comment-1374</link>
		<dc:creator>傅翠云</dc:creator>
		<pubDate>Thu, 02 Sep 2010 08:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-1374</guid>
		<description>&lt;a href=&quot;#comment-1373&quot; rel=&quot;nofollow&quot;&gt;@乌鸦精 &lt;/a&gt; 

你好，根据你的描述，你的数据库可能已经损坏。可试图用db_dump导出所有有效数据，并用db_load重载导出的有效数据至一个新的数据文件。</description>
		<content:encoded><![CDATA[<p><a href="#comment-1373" rel="nofollow">@乌鸦精 </a> </p>
<p>你好，根据你的描述，你的数据库可能已经损坏。可试图用db_dump导出所有有效数据，并用db_load重载导出的有效数据至一个新的数据文件。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：乌鸦精</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-2/#comment-1373</link>
		<dc:creator>乌鸦精</dc:creator>
		<pubDate>Thu, 02 Sep 2010 07:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-1373</guid>
		<description>如果出现这种错误可以如何处理 我试图删除该键值的数据 或者 写入都报错

还有一个问题就是 我在写入 几百万数据时 采用的是同个对象 
也就是说 在开始写入第一条数据打开一个连接 以后都通过该对象写入 直到几百万数据全部写入才关闭。
谢谢版主</description>
		<content:encoded><![CDATA[<p>如果出现这种错误可以如何处理 我试图删除该键值的数据 或者 写入都报错</p>
<p>还有一个问题就是 我在写入 几百万数据时 采用的是同个对象<br />
也就是说 在开始写入第一条数据打开一个连接 以后都通过该对象写入 直到几百万数据全部写入才关闭。<br />
谢谢版主</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：乌鸦精</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-2/#comment-1372</link>
		<dc:creator>乌鸦精</dc:creator>
		<pubDate>Thu, 02 Sep 2010 06:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-1372</guid>
		<description>DB_PAGE_NOTFOUND: Requested page not found

我存储的数据是数组对象 通过Exists判断是存在值的 Get取值的时候 在异常捕获的是上面的错误</description>
		<content:encoded><![CDATA[<p>DB_PAGE_NOTFOUND: Requested page not found</p>
<p>我存储的数据是数组对象 通过Exists判断是存在值的 Get取值的时候 在异常捕获的是上面的错误</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：乌鸦精</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-1/#comment-1371</link>
		<dc:creator>乌鸦精</dc:creator>
		<pubDate>Thu, 02 Sep 2010 06:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-1371</guid>
		<description>BerkeleyDB.PageNotFoundException 中第一次偶然出现的“libdb_dotnet48.dll”类型的异常

这主要是什么造成的了</description>
		<content:encoded><![CDATA[<p>BerkeleyDB.PageNotFoundException 中第一次偶然出现的“libdb_dotnet48.dll”类型的异常</p>
<p>这主要是什么造成的了</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：傅翠云</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-1/#comment-1366</link>
		<dc:creator>傅翠云</dc:creator>
		<pubDate>Tue, 31 Aug 2010 07:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-1366</guid>
		<description>&lt;a href=&quot;#comment-1353&quot; rel=&quot;nofollow&quot;&gt;@乌鸦精 &lt;/a&gt; 
1. 高速缓存的大小可用{DB, DB_ENV}-&gt;set_cachesize设置。在高速缓存中，页被替换的时间跟你的应用数据的访问频率有关。你可根据自身的访问特点，进行预热。

2. 数据库文件损坏后，如果有日志和事务，可以恢复，如果没有日志和事务，可DB_DUMP出来重新装载到一个新的数据库文件中。

3. 你需要如何管理日志文件？请详细说明。

4. 备份分为冷备份和热备份。冷备份是将数据库关闭，将所有文件拷贝到另外一个磁盘空间。热备份是在数据库打开时，进行实时备份，可用db_hotbackup完成，具体可参考http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/db_hotbackup.html。</description>
		<content:encoded><![CDATA[<p><a href="#comment-1353" rel="nofollow">@乌鸦精 </a><br />
1. 高速缓存的大小可用{DB, DB_ENV}->set_cachesize设置。在高速缓存中，页被替换的时间跟你的应用数据的访问频率有关。你可根据自身的访问特点，进行预热。</p>
<p>2. 数据库文件损坏后，如果有日志和事务，可以恢复，如果没有日志和事务，可DB_DUMP出来重新装载到一个新的数据库文件中。</p>
<p>3. 你需要如何管理日志文件？请详细说明。</p>
<p>4. 备份分为冷备份和热备份。冷备份是将数据库关闭，将所有文件拷贝到另外一个磁盘空间。热备份是在数据库打开时，进行实时备份，可用db_hotbackup完成，具体可参考http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/db_hotbackup.html。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：乌鸦精</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-1/#comment-1353</link>
		<dc:creator>乌鸦精</dc:creator>
		<pubDate>Thu, 26 Aug 2010 07:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-1353</guid>
		<description>请教几个berkeleyDB的问题 
1 bdb的高速缓存区 如何设置 在64位的服务器上面 内存64G 未设置的情况下 可以使用到多少 还有就是 高速缓存区里的数据多久消失 我如何管理 可以预热吗。
2 我在写BDB的时候出现过数据库文件损坏 这个可以如何预防 或者补救。
3 BDB的日志文件如何管理。
4 备份是怎么操作的。</description>
		<content:encoded><![CDATA[<p>请教几个berkeleyDB的问题<br />
1 bdb的高速缓存区 如何设置 在64位的服务器上面 内存64G 未设置的情况下 可以使用到多少 还有就是 高速缓存区里的数据多久消失 我如何管理 可以预热吗。<br />
2 我在写BDB的时候出现过数据库文件损坏 这个可以如何预防 或者补救。<br />
3 BDB的日志文件如何管理。<br />
4 备份是怎么操作的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：michael</title>
		<link>http://www.bdbchina.com/2009/10/bdb-c-api%e5%88%9d%e6%8e%a2/comment-page-1/#comment-773</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Sat, 27 Mar 2010 07:03:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=653#comment-773</guid>
		<description>berkeleyDB有没有提供这样一种功能：譬如说在数据库环境下创建了一个数据库，能不能配置这个数据库使得数据库有最大文件存储上限，等到达这个上限时，数据库会重新创建一个新的文件进行写记录，如此反复。</description>
		<content:encoded><![CDATA[<p>berkeleyDB有没有提供这样一种功能：譬如说在数据库环境下创建了一个数据库，能不能配置这个数据库使得数据库有最大文件存储上限，等到达这个上限时，数据库会重新创建一个新的文件进行写记录，如此反复。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
Դ
