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, which is located in the Installing and upgrading section of the Rational® Synergy Information center. Ensure that you have completed the requirements before attempting to use a command.

For more information see:

ccmsrv offline

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

Procedure

  1. Log on to the database server as user root.
  2. Set user to informix.
    root# su - informix
    Password: *****

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

  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