datastage环境配置

有些事后ds报错,或者调用ds命令的时候报错,试试运行dsenv文件试试

一下是我的ds的用户环境配置

[dsadm@dataStage ~]$ more .bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
export DSHOME=/opt/IBM/InformationServer/Server/DSEngine/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/dsadm/Ascential/DataStage/branded_odbc/lib:/home/dsadm/Ascential/DataStage/DSEngine/lib:/home/dsadm/Ascential/DataStage/DSEngine/uvdlls:/home/dsa
dm/Ascential/DataStage/DSEngine/java/jre/lib/i386/client:/home/dsadm/Ascential/DataStage/DSEngine/java/jre/lib/i386::/home/db2inst1/sqllib/lib:/opt/IBM/InfoSphere/Server/DSEngine/lib/
. /opt/IBM/InformationServer/Server/DSEngine/dsenv
EDITOR=vi;
export EDITOR
export LANG=zh_CN.UTF-8


export PATH
[dsadm@dataStage ~]$ 

--

dsenv文件

[dsadm@dataStage ~]$ cd $DSHOME
[dsadm@dataStage DSEngine]$ more dsenv
#!/bin/sh
####################################################################
#
# dsenv - DataStage environment file
#
#       Licensed Materials - Property of IBM (c) Copyright IBM Corp. 1997, 2011 All Rights Reserved.
#       This is unpublished proprietary source code of IBM Corporation
#       The copyright notice above does not evidence any actual or
#       intended publication of such source code.
#
# This script is sourced by the DataStage dsrpcd daemon to establish 
# proper environment settings for DataStage client connections.
#
# This script may also be sourced by bourne shells to establish 
# proper environment settings for local DataStage use.
#
####################################################################

# PLATFORM SPECIFIC SECTION

set +u

if [ -z "$DSHOME" ] && [ -f "/.dshome" ]
then
        DSHOME=`cat /.dshome`
        export DSHOME
fi

if [ -z "$DSHOME" ]
then
DSHOME=/opt/IBM/InformationServer/Server/DSEngine; export DSHOME
fi


if [ -z "$DSRPCD_PORT_NUMBER" ]
then
        true
DSRPCD_PORT_NUMBER=31538; export DSRPCD_PORT_NUMBER
fi

if [ -z "$APT_ORCHHOME" ]
then
APT_ORCHHOME=/opt/IBM/InformationServer/Server/PXEngine; export APT_ORCHHOME
fi

#if [ -z "$UDTHOME" ]
#then
UDTHOME=/opt/IBM/InformationServer/Server/DSEngine/ud41 ; export UDTHOME
UDTBIN=/opt/IBM/InformationServer/Server/DSEngine/ud41/bin ; export UDTBIN
#fi

#if [ -z "$ASBHOME" ] && [ -f "$DSHOME/.asbnode" ]
#then
        ASBHOME=`cat $DSHOME/.asbnode`
        export ASBHOME
#fi

#if [ -z "$ASBHOME" ]
#then
        #ASBHOME=`dirname \`dirname $DSHOME\``/ASBNode
        #export ASBHOME
#fi

if [ -n "$DSHOME" ] && [ -d "$DSHOME" ]
then
        ODBCINI=$DSHOME/.odbc.ini; export ODBCINI
        HOME=${HOME:-/}; export HOME

        #LANG="<langdef>";export LANG
        #LC_ALL="<langdef>";export LC_ALL
        #LC_CTYPE="<langdef>";export LC_CTYPE
        #LC_COLLATE="<langdef>";export LC_COLLATE
        #LC_MONETARY="<langdef>";export LC_MONETARY
        #LC_NUMERIC="<langdef>";export LC_NUMERIC
        #LC_TIME="<langdef>";export LC_TIME
        #LC_MESSAGES="<langdef>"; export LC_MESSAGES

        LD_LIBRARY_PATH=`dirname $DSHOME`/branded_odbc/lib:`dirname $DSHOME`/DSComponents/lib:`dirname $DSHOME`/DSComponents/bin:$DSHOME/lib:$DSHOME/uvdlls:`dirname $DSHOME`/PXEngine/lib:$ASB
HOME/apps/jre/bin:$ASBHOME/apps/jre/bin/classic:$ASBHOME/lib/cpp:$ASBHOME/apps/proxy/cpp/linux-all-x86_64:$LD_LIBRARY_PATH
        export LD_LIBRARY_PATH
        LD_PRELOAD=`dirname $DSHOME`/DSComponents/lib/libicui18n.so
        export LD_PRELOAD


fi
unset MODULEPATH
unset MODULESHOME
unset module

if [ -f /home/db2inst1/sqllib/db2profile ]; then
    . /home/db2inst1/sqllib/db2profile
fi
export DB2INSTANCE=db2inst1

[dsadm@dataStage DSEngine]$  


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值