Env flags flags vs DB, which is inherited and what is it not?

Some flags is common between an environment and a database. Are a some of them inherited to open a database in an environment? You specify all the flags again?

The flags in common seem to be:

DB_CREATE
DB_MULTIVERSION
DB_THREAD
DB_NOMMAP

Thank you
-Dan

Hello

I don't think that there is no general rule here. To clarify, verify
each indicator in the 'Permuted Index' documentation to:

http://www.Oracle.com/technology/documentation/Berkeley-DB/DB/api_c/c_pindex.html

For example the parameter DB_MULTIVERSION with DB_ENV-> set_flags() opens
all databases in the environment than if DB_MULTIVERSION is passed to
DB-> open(). However DB_CREATE on the environment has no influence on the
DB_CREATE using a database.

Documentation, for the four indicators mentioned:

DB_CREATE when used with DB_ENV-> open() cause Berkeley DB subsystems
to create files underlying, if necessary. DB_CREATE when
used with DB-> open() creates the database. If the database is not
exist and the DB_CREATE flag is not specified, the DB-> open()
will fail.

When DB_MULTIVERSION is used with DB_ENV-> set_flags() all databases in
the environment will be open only if DB_MULTIVERSION is passed to
DB-> open(). This indicator will be ignored for the queue for the DB_MULTIVERSION databases
is not supported. When used with DB-> open() it opens the database with the support of
access control competitive product.

The use of DB_THREAD with DB_ENV-> open() causes the returned DB_ENV handle
by DB_ENV-> open() to be free of threads; in other words, can be used simultaneously by multiple threads
in the address space. The use of DB_THREAD with DB-> open() causes the returned handle DB
by DB-> open() to be free of threads; in other words, can be used simultaneously by multiple threads in the
address space

When DB_NOMMAP is used with DB_ENV-> set_flags(), read-only database
the files will be copied to the local cache rather than potentially mapping
These in the memory of the process. When it is used with the flag says for DB-> open(), do
do not map this database in process memory

Thank you
Sandra

Tags: Database

Similar Questions

Maybe you are looking for