Initializing a Database from the Console
97
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
.
1
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
be stopped; see
Section 4.1.4.1, “Importing Using the ldif2db Command-Line Script”
.
•
Using ldif2db.pl.
This import method overwrites the contents of the database while the server is still
running; see
Section 4.1.4.2, “Importing Using the ldif2db.pl Perl Script”
.
Summary of Contents for DIRECTORY SERVER 8.0
Page 18: ...xviii ...
Page 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Page 30: ...12 ...
Page 112: ...94 ...
Page 128: ...110 ...
Page 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Page 224: ...206 ...
Page 324: ...306 ...
Page 334: ...316 ...
Page 358: ...340 ...
Page 410: ...392 ...
Page 420: ...402 ...
Page 444: ...426 ...
Page 454: ...436 ...
Page 464: ...446 ...
Page 484: ...466 ...
Page 512: ...494 ...
Page 522: ...504 ...