Show Table of Contents
2.3. Database Files
Each Directory Server instance contains the
/var/lib/dirsrv/slapd-instance_name/db directory for storing all of the database files. The following is a sample listing of the /var/lib/dirsrv/slapd-instance_name/db directory contents.
Example 2.1. Database Directory Contents
__db.001 __db.003 __db.005 NetscapeRoot/ __db.002 __db.004 DBVERSION log.0000000007 userRoot/
db.00xfiles — Used internally by the database and should not be moved, deleted, or modified in any way.log.xxxxxxxxxxfiles — Used to store the transaction logs per database.DBVERSION— Used for storing the version of the database.NetscapeRoot— Stores theo=NetscapeRootdatabase created by default when thesetup-ds-admin.plscript is run.userRoot— Stores the user-defined suffix (user-defined databases) created at setup; for example,dc=example,dc=com.
Note
If a new database is created (for example,
testRoot) to store the directory tree under a new suffix, the directory named testRoot also appears in the /var/lib/dirsrv/slapd-instance_name/db directory.
The following is a sample listing of the
NetscapeRoot directory contents.
Example 2.2. NetscapeRoot Database Directory Contents
./ entrydn.db4* parentid.db4* ../ givenName.db4* sn.db4* DBVERSION* id2entry.db4* uid.db4* aci.db4* nsUniqueId.db4* uniquemember.db4* ancestorid.db4* numsubordinates.db4* cn.db4* objectclass.db4*
The
NetscapeRoot subdirectories contain an index_namedb4 file for every index currently defined in the database. In addition to these files, the NetscapeRoot and userRoot subdirectories contain the following files:
ancestorid.db4— Contains a list of IDs to find the ID of the entry's ancestor.entrydn.db4— Contains a list of full DNs to find any ID.id2entry.db4— Contains the actual directory database entries. All other database files can be recreated from this one, if necessary.nsuniqueid.db4— Contains a list of unique IDs to find any ID.numsubordinates.db4— Contains IDs that have child entries.objectclass.db4— Contains a list of IDs which have a particular object class.parentid.db4— Contains a list of IDs to find the ID of the parent.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.