Start the DB2, WAS, and TDS services on linux

Source: Internet
Author: User
Tags ibm db2


Linux boot DB2, WAS, TDS service reference link: http://www.bkjia.com/database/201207/141858.html www.2cto.com http://www.bkjia.com/ OS /201207/141862.html1.to the /etc/init.d directory. Run the Shell code cd/etc/init. d as root. 2. Write the DB2 STARTUP script Shell code vi startDB2 and enter the following Shell code #! /Bin/sh # chkconfig: 2345 99 01 # processname: IBMDB2 # description: db2 start DB2_HOME = "/home/db2inst1/sqllib" # Install sqllib DB2_OWNER = "db2inst1" # db2 user name www.2cto.com case "$1" in start) echo-n "starting IBM db2" su-$ DB2_OWNER-c $ DB2_HOME/adm/db2start touch/var/lock/db2 echo "OK"; stop) echo-n "shutdown IBM db2" su-$ DB2_OWNER-c $ DB2_HOME/adm/db2stop rm-f/var/lock/db2 echo "OK"; re Start | reload) $0 stop $0 start; *) echo "usage: $0 start | stop | restart | reload" exit 1 www.2cto.com esac exit 0 3. write the script to start was and tds. Shell code vi startWasTds enter the following Shell code #! /Bin/sh # chkconfig: 2345 99 01 # processname: IBMTDSWAS # description: filenet was tds/opt/IBM/WebSphere/AppServer/profiles/AppSrvTds/bin/startServer. sh server1/opt/IBM/WebSphere/AppServer/profiles/cmdrv01/bin/startServer. sh server1/opt/IBM/WebSphere/AppServer/profiles/ilog/bin/startServer. sh serve1 # TDS/opt/ibm/ldap/V6.3/sbin/ibmdiradm-l dsrdbm01-t/opt/ibm/ldap/V6.3/sbin/ibmslapd parameter description: Header comment: The linux Command chkconfig requires that the file header must contain the following three Shell chkconfig codes: www.2cto.com # chkconfig: 2345 (default runlevel) 99 (startup priority) 01 (disable priority) # processname: process name # description: process description 4. grant the File Permission to the Shell code chmod-R 777 startDB2 chmod-R 777 startWasTds chkconfig -- add startDB2 chkconfig -- add startWasTds add boot successful. Author xkorey

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.