Creating a database server after installation

You create a database server by setting mandatory database server properties and then starting the database server.

Procedure

To create a database server:
  1. Configure the mandatory properties of the database server.
    1. Set configuration parameters in the onconfig file.
    2. Add connectivity information in the sqlhosts file and other connectivity files.
    3. Set environment variables in your environment.
    Tip: On Windows operating systems, you can use the Server Instance Manager to configure the mandatory properties of the database server instead of editing the onconfig and sqlhosts file and setting environment variables.
  2. Optional: Configure the wire listener for MongoDB API and REST API support.
  3. Initialize disk space for the database server when you start the database server for the first time. Disk space initialization creates the initial chunk of the root dbspace, which stores control and tracking information.
    Attention: Do not initialize the disk space if you are upgrading from a previous version of the database server and you are using the same root dbspace. Initializing disk space deletes all existing user data and tracking information in the root dbspace.
    • UNIX™, Linux™: Run the oninit -i command.
    • Windows™: In the database server properties dialog box from the Services application, add -i in the Start Parameters field and click Start.

Results

The database server is started with disk space initialized.

Windows: A program group for the server is created from which you can open a command prompt for the database server, start the Server Instance Manager, uninstall the database server, or view documentation.

After you start the database server, you can set optional configuration parameters, environment variables, and connectivity settings.