Initializing A Database From The Console; Importing From The Command-Line - Red Hat DIRECTORY SERVER 8.0 - ADMINISTRATION Administration Manual

Hide thumbs Also See for DIRECTORY SERVER 8.0 - ADMINISTRATION:
Table of Contents

Advertisement

NOTE
Trailing spaces are dropped during a remote Console import but are preserved during
both local Console or ldif2db import operations.

4.1.3. Initializing a Database from the Console

The existing data in a database can be overwritten by initializing databases.
You must be logged in as the Directory Manager in order to initialize a database because an LDIF
file that contains a root entry cannot be imported into a database except as the Directory Manager
(root DN). Only the Directory Manager has access to the root entry, such as dc=example,dc=com.
WARNING
When initializing databases from an LDIF file, be careful not to overwrite the
o=NetscapeRoot suffix unless you are restoring data. Otherwise, initializing the
database deletes information and may require re-installing the Directory Server.
To initialize a database using the Directory Server Console, do the following:
1. Select the Configuration tab.
2. Expand the Data tree in the left navigation pane. Expand the suffix of the database to initialize,
then click the database itself.
3. Right-click the database, and select Initialize Database.
Alterntatively, select Initialize Database from the Object menu.
4. In the LDIF file field, enter the full path to the LDIF file to import, or click Browse.
5. If the Console is running from a machine local to the file being imported, click OK and proceed
with the import immediately. If the Console is running from a machine remote to the server
containing the LDIF file, select one of the following options, then click OK:
• From local machine. Indicates that the LDIF file is located on the local machine.
• From server machine. Indicates that the LDIF file is located on a remote server.
The default LDIF directory is /var/lib/dirsrv/slapd-instance_name/ldif.

4.1.4. Importing from the Command-Line

There are three methods for importing data through the command-line:
• Using ldif2db. This import method overwrites the contents of the database and requires the server to
Section 4.1.4.1, "Importing Using the ldif2db Command-Line
be stopped; see
• Using ldif2db.pl. This import method overwrites the contents of the database while the server is still
Section 4.1.4.2, "Importing Using the ldif2db.pl Perl
running; see
Initializing a Database from the Console
Script".
Script".
1
97

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTORY SERVER 8.0 - ADMINISTRATION and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents