Results 1 to 5 of 5

Thread: stop standby

  1. #1
    Join Date
    Sep 2009
    Posts
    66

    Unanswered: stop standby

    9.7 - Linux

    How can I stop HADR standby without stopping HADR primary. Please provide command sequence.

  2. #2
    Join Date
    Sep 2008
    Location
    Toronto,Canada
    Posts
    655
    HADR can be stopped without affecting primary. any problem ? Maybe I did not get your question ??
    On standby machine type
    Code:
    STOP HADR ON DATABASE <dbname>
    STOP HADR

  3. #3
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    Quote Originally Posted by L_DBA_L View Post
    9.7 - Linux

    How can I stop HADR standby without stopping HADR primary. Please provide command sequence.
    db2 deactivate db <db-name>
    db2stop (optional)

    You don't want to (or actually need to) stop HADR.
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

  4. #4
    Join Date
    Sep 2009
    Posts
    66
    I updated database cfg parameter AUTO_MAINT to off on standby. The message said database needs to be restarted. Is it enough to just deactivate and reactivate the database? There is nothing connected on standby. Will primary continue to function normally if standby is deactivated?

  5. #5
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    Quote Originally Posted by L_DBA_L View Post
    I updated database cfg parameter AUTO_MAINT to off on standby. The message said database needs to be restarted. Is it enough to just deactivate and reactivate the database? There is nothing connected on standby. Will primary continue to function normally if standby is deactivated?
    Run this on standby (will not affect Primary)
    • db2 deactivate db <db-name>
    • db2stop
    • db2start
    • db2 activate db <db-name>


    Verify that HADR is in peer state:
    • db2pd -d <db-name> -hadr
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

Posting Permissions

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