### Berkeley DB Reference Guide: Environment |

# Opening databases within the environment

Once the environment has been created, database handles may be created and then opened within the environment. This is done by calling the db_create interface and specifying the appropriate environment as an argument.

File naming, database operations and error handling will all be done as specified for the environment, e.g., if the DB_INIT_LOCK or DB_INIT_CDB flags were specified when the environment was created or joined, database operations will automatically perform all necessary locking operations for the application.

Copyright Sleepycat Software