Discussion:
Can't start DB2 client service on SUSE as root
(too old to reply)
b***@assurant.com
2007-08-13 15:36:46 UTC
Permalink
Problem: We need to start the DB2 profile when booting as root for another process to use.

this is the section that was put into .bashrc file of the user that the process runs on.

if [ -f /home/db2inst2/sqllib/db2profile ]; then
. /home/db2inst2/sqllib/db2profile
fi

I have tried running the db2profile as root, and this does not work. If anyone has any ideas please let me know.
Knut Stolze
2007-08-14 15:22:15 UTC
Permalink
Post by b***@assurant.com
Problem: We need to start the DB2 profile when booting as root for another process to use.
this is the section that was put into .bashrc file of the user that the process runs on.
if [ -f /home/db2inst2/sqllib/db2profile ]; then
. /home/db2inst2/sqllib/db2profile
fi
I have tried running the db2profile as root, and this does not work. If
anyone has any ideas please let me know.
I would "su" to the DB2 instance owner (db2inst2) and start DB2 that way:

su -l db2inst2 -c "db2start"
--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Loading...