Taking a database server offline

Use the ccmsrv offline command to take the database server offline. You must run this command on the machine where the server resides.

This topic contains steps for both Windows and UNIX.

Read Pre-Installation on Windows or Pre-Installation on UNIX. Ensure that you have completed the requirements before attempting to use a command.

For more information see:

Windows: ccmsrv offline

UNIX on Informix®: ccmsrv offline

Windows

Procedure

  1. Ensure that you are an Informix-Admin group member and working as local administrator.
  2. Send out a message to all users of the tstgonzo database that you are about to take the server offline.
    > ccm message /database "?tstgonzo" "Taking server offline in 15 minutes.
    Close all sessions!"
  3. Shut down all databases.

    In this example, there is only one database.

    > ccmdb shutdown \\sue\ccm_db\tstgonzo
  4. Take the database server offline.

    > ccmsrv offline

UNIX

Before you begin

If you did not set up CCM_HOME and PATH for user informix during installation, set these environment variables now.

Procedure

  1. Log on to the database server as user root.
  2. Set user to informix.
    root# su - informix
    Password: *****
  3. Take the database server offline, using -y to suppress confirmation messages.

    For example, take the hydra1 server offline as follows:

    $ ccmsrv offline -y -s hydra1
  4. Exit from user informix.

    $ exit


Feedback