Pinned topic How to start DB2 on RedHat
Now I no longer start.
On RedHat machine I have the root account, then during the installation of DB2 I was asked to create an administrator account for DB2, and an account of the owner instance. I then three accounts:
-RedHat root account
-Admin DB2 account
-Owner instance DB2 account
Now how do I start DB2, so that the account owner instance can execute the query?
And then how do I put in the DB2 service to start at boot RedHat?
nivanov1 100000H9H7231 PostsACCEPTED ANSWER
Re: How to start DB2 on RedHat2013-02-12T17:59:41Z in response to SystemAdminTo start the instance manually execute the db2start command as the instance owner. To start it automatically you'd need to add a script performing this task to your init.d directory (or systemd, if that's what you use).
dawinter 270001NU851 PostACCEPTED ANSWER
Re: How to start DB2 on RedHat2015-04-17T22:04:10Z in response to SystemAdmin
You can enable the autostart for a db2inst with db2iauto -on db2inst1
Additionally the db2 install add an entry for the fault monitor in inittab.
But with Redhat 6 inittab is deprecated and with Redhat 7 upstart is deprecated and are disabled. (see http://www-01.ibm.com/support/docview.wss?uid=swg21209001)
To reenable the autostart for the fault monitor and the db2inst you can activate it via systemd as described here: