Previous Topic: Use a Response File to Install the Directory Management Package Silently on UNIX

Next Topic: Activate a 64-bit DXserver

Create a DSA Datastore and Populate It from an LDIF File

After you have installed the DSA software, you can create a DSA datastore and then populate the datastore from the LDIF file. You can use the command dxloaddb estimate the size of datastore you need to handle your LDIF file.

To create a DSA datastore and populate it from an LDIF file

  1. Enter the following command:
    dxloaddb -n -s myDSAname myLDIFfilename
    
    -n

    Specifies that DXloaddb does not do any actions.

    -s

    Specifies that DXloaddb produces the following statistics concerning the datastore:

    • Total data size in MB
    • Total number of entries
    • Number of entries ignored
    • Amount of padding in the datastore file in KB
    • Average number of entries per MB
    myDSAname

    Defines the DSA whose datastore is to be loaded.

    myLDIFfilename

    Specifies the name of the LDIF file to load into the datastore.

    The command displays the number of entries and size per entry you can use to estimate the size of the datastore you will need to handle you LDIF.

  2. Enter the following command:
    dxnewdsa myDSAname 1234
    
    myDSAname

    Defines the name of the DSA. Maximum length is 31 characters.

    Port

    Specifies the port number of the DSA.

    The command creates the datastore.

    Example: The following command creates a 1 GB datastore:

    dxnewdsa myDSAname 1234
    
  3. Enter the following command:
    dxloaddb myDSAname myLDIFfilename
    
    myDSAname

    Defines the DSA whose datastore is to be loaded.

    myLDIFfilename

    Specifies

    The command populates the datastore.

Note: For more information, see the Reference Guide for details of the dxloaddb and dxnewdsa commands.