Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2013
    Posts
    31

    Unanswered: Suggested steps to gracefully reboot a Windows server running DB2 9.5

    We need to move a Windows 2003 Server running DB2 9.5 to another rack, so I'd like to shut down DB2 as gracefully as possible. This server is used by our website and receives data from Q Apply (running on another server), so it has a variety constant connections on it.

    We've bounced this server before just by rebooting it, but I'm always afraid that this'll create corruption or cause other issues given DB2 wasn't gracefully stopped before the reboot. My fear though is that running just a 'db2stop' will hang given all the connections we have to the server.

    So in this scenario would 'db2stop force' be sufficient or should I initiate 'db2 force applications all' and/or 'terminate' first? Also what are the differences between doing these or running 'DEACTIVATE DATABASE'? And would using 'QUIESCE DATABASE' help if it were ran in the beginning?

    Thanks.

  2. #2
    Join Date
    Jul 2013
    Location
    Moscow, Russia
    Posts
    666
    Provided Answers: 55
    Hi,

    'db2stop force' should be safe for databases. Of course if your applications are able to correctly handle errors like lost connection. Q Apply can do this.
    DEACTIVATE DATABASE:
    Default DB2 database behavior is to activate a database implicitly by the first user's connection. 'Activation' roughly means starting all necessary database services, allocation of memory for all database memory consumers, etc. Consider these steps as a database preparation for normal database work.
    If you want to change this behavior, you can explicitly run ACTIVATE DATABASE. In this case all these preparation will be done before the 1-st user's connection.
    If you want to return to the default behavior, you run the DEACTIVATE DATABASE command.
    So, running DEACTIVATE DATABASE doesn't cause the user's connection to be forced off.
    Regards,
    Mark.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •