datastage环境配置

来源:互联网 发布:less没网络可以安装吗 编辑:程序博客网 时间:2024/05/17 23:22

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

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

[dsadm@dataStage ~]$ more .bash_profile # .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then        . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport 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/dsadm/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/dsenvEDITOR=vi;export EDITORexport LANG=zh_CN.UTF-8export 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 SECTIONset +uif [ -z "$DSHOME" ] && [ -f "/.dshome" ]then        DSHOME=`cat /.dshome`        export DSHOMEfiif [ -z "$DSHOME" ]thenDSHOME=/opt/IBM/InformationServer/Server/DSEngine; export DSHOMEfiif [ -z "$DSRPCD_PORT_NUMBER" ]then        trueDSRPCD_PORT_NUMBER=31538; export DSRPCD_PORT_NUMBERfiif [ -z "$APT_ORCHHOME" ]thenAPT_ORCHHOME=/opt/IBM/InformationServer/Server/PXEngine; export APT_ORCHHOMEfi#if [ -z "$UDTHOME" ]#thenUDTHOME=/opt/IBM/InformationServer/Server/DSEngine/ud41 ; export UDTHOMEUDTBIN=/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#fiif [ -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:$ASBHOME/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_PRELOADfiunset MODULEPATHunset MODULESHOMEunset moduleif [ -f /home/db2inst1/sqllib/db2profile ]; then    . /home/db2inst1/sqllib/db2profilefiexport DB2INSTANCE=db2inst1[dsadm@dataStage DSEngine]$  


0 0
原创粉丝点击