| Computers Forum Index » Computer - Databases - Berkeley » Database to be opened by a server process and an... |
|
Page 1 of 1 |
|
| Author |
Message |
| vasu.psl... |
Posted: Sun Jun 14, 2009 12:40 pm |
|
|
|
Guest
|
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 |
|
|
| Back to top |
|
|
|
| vasu.psl... |
Posted: Sun Jun 14, 2009 12:51 pm |
|
|
|
Guest
|
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 |
|
|
| Back to top |
|
|
|
|