dbTalk Databases Forums  

Database to be opened by a server process and an utility to managedata

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Database to be opened by a server process and an utility to managedata in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vasu.psl
 
Posts: n/a

Default Database to be opened by a server process and an utility to managedata - 06-14-2009 , 07:40 AM






Hi,

We have a multi-threaded server process using a set of BDB databases .
We have a requirement to write a small utility to manage the same
databases for modifying and deleting records manually whenever it is
required.

Now I would like to know the following things:
Quote:
the changes that I have to make to the server process while opening those BDB environments / databases.
The flags currently used i the server process are
<pre>
m_dbenv->open(m_dbenv, m_HomeDir, DB_CREATE | DB_INIT_LOCK |
DB_INIT_LOG |
DB_INIT_MPOOL |
DB_INIT_TXN |
DB_THREAD |
DB_RECOVER | DB_PRIVATE,
0);
</pre>

Quote:
the flags to be used by the utility

should I take care of database recovery in server process when the utility fails

Reply With Quote
  #2  
Old   
vasu.psl
 
Posts: n/a

Default Re: Database to be opened by a server process and an utility tomanage data - 06-14-2009 , 07:51 AM






Re posting after format corrected:
Hi,

We have a multi-threaded server process using a set of BDB
databases .
We have a requirement to write a small utility to manage the same
databases for modifying and deleting records manually whenever it is
required.

Now I would like to know the following things:

1. the changes that I have to make to the server process while
opening those BDB environments / databases.

* * *The flags currently used i the server process are
<pre>
m_dbenv->open(m_dbenv, m_HomeDir, DB_CREATE | DB_INIT_LOCK |
* * * * * * * * * * * * * * DB_INIT_LOG |
* * * * * * * * * * * * * * DB_INIT_MPOOL |
* * * * * * * * * * * * * * DB_INIT_TXN |
* * * * * * * * * * * * * * DB_THREAD |
* * * * * * * * * * * * * * DB_RECOVER | DB_PRIVATE,
* * * * * * * * * * * * * * 0);
</pre>

2. the flags to be used by the utility
3. should *I take care of database recovery in server process when
the utility fails

Thanks,
Vasu

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.