Stopping and starting the database server

Various configuration tasks require you to stop and then start the database server. Shared memory is initialized every time that the database server starts.

About this task

The database server has various Database server operating modes.

  • You can use the onstat - command to determine the database server mode.
  • You can use the onmode utility to switch the database server from one mode to another.

Stopping and starting the database server (UNIX, Linux, Mac OS X)

You run the onmode utility to stop the database server, and the oninit utility to start the database server.

Before you begin

For a standard installation, log in as user root or user informix. For a non-root installation, log in as the owner of the database server.

Procedure

  1. To stop the database server, run the onmode -ku command.
  2. To start the database server, run the oninit command.
    You can include options to the oninit command. For example, you suppress verification prompts by running the oninit -y command.

Stopping and starting the database server (Windows)

You stop and start the database server with the Services application.

Before you begin

Log in a member of the Administrators group.

Procedure

  1. To stop the database server, in the server properties dialog box from the Services application, click Stop.
  2. To start the database server, in the database server properties dialog box from the Services application, type optional oninit options in the Start Parameters box, and then click Start.
    Alternatively, you can start the database server by running the starts command from a command prompt. You can also include options for the oninit command in the starts command.