Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2012
    Posts
    2

    Unanswered: DB2 autostart don't work properly

    I can't cause DB2 to start automatically. I tried command

    Code:
    db2iauto -on db2inst1
    Also DAS don't start automatically. For cause autostart on DAS I used command
    Code:
    dasauto -on
    Where is problem?

    I use Linux Redhat 6.3. DB2 version is 9.7

    Thanks.
    P.S. I think about writing script that will be executed on boot time and will execute
    Code:
    db2start
    and
    Code:
    db2admin start
    commands manually. It is good way?
    Last edited by welcometo; 10-03-12 at 06:36.

  2. #2
    Join Date
    Sep 2012
    Posts
    7
    Hi,

    Are there any errors/messages in the db2diag.log file?

    The db2iauto command returns any warnings/errors?

  3. #3
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    Which user are you executing each command with?

    Andy

  4. #4
    Join Date
    Aug 2008
    Location
    Toronto, Canada
    Posts
    2,367
    Quote Originally Posted by welcometo View Post
    I can't cause DB2 to start automatically. I tried command

    Code:
    db2iauto -on db2inst1
    Enabling instance to autostart using db2iauto is not enough. You need to do more than that, check:
    IBM How to use fault monitors to automatically restart DB2 UDB instances - United States


    Quote Originally Posted by welcometo View Post
    P.S. I think about writing script that will be executed on boot time and will execute
    Code:
    db2start
    and
    Code:
    db2admin start
    commands manually. It is good way?
    We setup both: fault monitor and the script to stop/start the instance during server reboot. On Linux, the script is setup with chkconfig to stop the applications prior to db2stop and restart them after db2start. The reason for the script is because I don't trust fault monitor 100% and to automate shutdown/start up of the applications. So far, it seems to work ok...

    If you just use the script (no fault monitor), then db2 won't restart if it terminates abnormally (ie. crash).

  5. #5
    Join Date
    Apr 2012
    Posts
    1,035
    Provided Answers: 18
    There may be a specific problem with RHEL 6.3 x64 and DB2 v9x/v10 instances starting at boot.
    Please check the /var/log/messages for any segmentation-violations that happen after boot (relating to the fm) and in particular whether you have any messages from abrt after the segmentation violation.

Posting Permissions

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