Skip to content

Instantly share code, notes, and snippets.

@mariusbutuc
Created September 10, 2012 19:47
Show Gist options
  • Save mariusbutuc/3693365 to your computer and use it in GitHub Desktop.
Save mariusbutuc/3693365 to your computer and use it in GitHub Desktop.
Start DB2 v10.1 and enable Text Search, for each DB2 instance
#! /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