Reputation: 4901
i'm new to Berkeley db, i have installed the version "db-4.8.30.NC.tar.gz" but now i would like to find the configuration information by using the configuration file.
I've read in the documentations that this file is named DB_CONFIG and it exists in the database home directory.
In my system, i have uzipped the tar file under /usr/db-4.8.30.NC but i still haven't found the DB_CONFIG file.
Well, i'm trying to find where the DB_CONFIG file is located in Unix, but i can't find it.
May you please help me?
Thanks, in advance
Upvotes: 0
Views: 1530
Reputation: 104080
You (or a system administrator) writes the DB_CONFIG
file by hand to modify any of the DB_ENV
environment variables that can be over-ridden at runtime.
The DB_CONFIG
file is stored in the db_home
directory; the docs/programmer_reference/env_naming.html
file has full details, but you can either pass an explicit db_home
parameter in the DB_ENV->open()
call or rely on the DB_HOME
environment variable to locate the DB_CONFIG
file, if any exists. The environment variable approach might be nice if the system administrator would reasonably want to move the storage around as they wish; the specific path name approach might be nice if you don't want to bother your system administrators with details of managing your storage.
Upvotes: 2