Shutting down databases for UNIX®

Shut down a database before backing it up, repairing it, or restoring it from backup.

Procedure

  1. Set user to ccm_root.
    $ su - ccm_root
    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.

  2. Display the database path by running the ccm monitor command.

    $ ccm monitor

  3. Broadcast a message to users.

    Notify users that you are shutting down the database.

    For example, notify test_ccm database users that you are shutting down the database, as follows:

    $ ccm message -database test_ccm ‘Shutting down database in 15 minutes. Close sessions!'

  4. Shut down the test_ccm database.

    For example, shut down the/vol/hydra/ccmdb/test_ccm database, as follows:

    $ ccmdb shutdown /vol/hydra/ccmdb/test_ccm

  5. Exit from user ccm_root.

Feedback