zoukankan      html  css  js  c++  java
  • 为db2用户添加db2命令及jdk环境变量配置

    AIX系统:
    db2inst用户 在/home/db2inst/.profile文件下新增以下代码(包括用户环境变量配置,具体路径取决于jdk安装的路径)

    PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/java6/jre/bin:/usr/java6/bin:.

    export PATH

    if [ -s "$MAIL" ] # This is at Shell startup. In normal
    then echo "$MAILMSG" # operation, the Shell checks
    fi # periodically.

    # The following three lines have been added by IBM DB2 instance utilities.
    if [ -f /home/db2inst1/sqllib/db2profile ]; then
    . /home/db2inst1/sqllib/db2profile
    fi


    Linux系统:
    db2inst1用户 在home/db2inst1/.bashrc文件下新增以下代码(包括用户环境变量配置,具体路径取决于jdk安装的路径)

    PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/java6/jre/bin:/usr/java6/bin:.

    export PATH

    if [ -s "$MAIL" ] # This is at Shell startup. In normal
    then echo "$MAILMSG" # operation, the Shell checks
    fi # periodically.

    # The following three lines have been added by IBM DB2 instance utilities.
    if [ -f /home/db2inst1/sqllib/db2profile ]; then
    . /home/db2inst1/sqllib/db2profile
    fi

  • 相关阅读:
    个人总结
    4号团队-团队任务3:每日立会(2018-12-07)
    4号团队-团队任务3:每日立会(2018-12-06)
    4号团队-团队任务3:每日立会(2018-12-05)
    团队任务3
    课后作业2
    课后作业1
    相识两年的自我介绍
    Android模拟器
    用户
  • 原文地址:https://www.cnblogs.com/rimmy/p/7168572.html
Copyright © 2011-2022 走看看