Created
September 10, 2012 19:47
-
-
Save mariusbutuc/3693365 to your computer and use it in GitHub Desktop.
Start DB2 v10.1 and enable Text Search, for each DB2 instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# vim /etc/init.d/db2.sh | |
# chmod 744 /etc/init.d/db2.sh | |
# ln /etc/init.d/db2.sh /etc/rc3.d/db2.sh | |
for i in `/opt/ibm/db2/V10.1/bin/db2ilist`; | |
do | |
su - $i -c "db2start" | |
su - $i -c 'db2ts "START FOR TEXT"' | |
done | |
# Inspired from: | |
# http://www.dba-db2.com/2011/07/db2start-at-start-up-on-linux-.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment