您的位置:首页 > 其它

datastage环境配置

2014-05-30 13:27 295 查看
有些事后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]$
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  datastage 环境