DataStage在RedHat Linux Enterprise 3上安装详细步骤(七)

xiaoxiao2022-06-23  44

DataStage在RedHat Linux Enterprise 3上安装详细步骤(七)

安装后的配置

(1)编辑/app/dsadm/Ascential/DataStage/DSEngine/目录下dsenv文件,我的dsenv文件内容为:

#!/bin/sh###################################################################### dsenv - DataStage environment file## Copyright (c) 1997 - 2004 Ascential Software Corporation. All Rights Reserved# This is unpublished proprietary source code of Ascential Software 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" ]thenDSHOME=`cat /.dshome`export DSHOMEfi

if [ -z "$DSHOME" ]thenDSHOME=/app/dsadm/Ascential/DataStage/DSEngine; export DSHOMEfi

if [ -z "$APT_ORCHHOME" ]thenAPT_ORCHHOME=/app/dsadm/Ascential/DataStage/PXEngine; export APT_ORCHHOMEfi

if [ -z "$UDTHOME" ]thenUDTHOME=/app/dsadm/Ascential/DataStage/ud41; export UDTHOMEUDTBIN=/app/dsadm/Ascential/DataStage/ud41/bin; export UDTBINfi

if [ -n "$DSHOME" ] && [ -d "$DSHOME" ]thenODBCINI=$DSHOME/.odbc.ini; export ODBCINIHOME=${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_MESSAGESLD_LIBRARY_PATH=`dirname $DSHOME`/branded_odbc/lib:$DSHOME/lib:$DSHOME/uvdlls:$DSHOME/java/jre/lib/i386/client:$DSHOME/java/jre/lib/i386:$LD_LIBRARY_PATHexport LD_LIBRARY_PATHfi

export ORACLE_BASE=/app/oracle

export ORACLE_HOME=/app/oracle/product/10.2

export TNS_ADMIN=/app/oracle/product/10.2/network/admin

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib

export PATH=$PATH:$ORACLE_HOME/bin

export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

export LIBPATH=$ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib:$LIBPATH

 

(2)编辑dsadm用户.bash_profile文件,我的该文件内容:

# .bash_profile

# Get the aliases and functionsif [ -f ~/.bashrc ]; then. ~/.bashrcfi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export DSHOME=/app/dsadm/Ascential/DataStage/DSEngine. $DSHOME/dsenv

PATH=$PATH:$DSHOME/bin:$APT_ORCHHOME/bin:$DSHOME/lib:$DSHOME/branded_odbc/lib:$ORACLE_HOME/binexport PATHexport NLS_LANG=American_America.ZHS16GBK

alias 'l=ls -l'

set -o viunset USERNAME

 

这两个文件照着我的配就OK了,当中的相关目录(ds和oracle)得修改为你的安装目录.

(3)执行动态库连接脚本

/app/dsadm/Ascential/DataStage/PXEngine/install/install.liborchoracle

出现Oracle Installation is complete才算安装成功.

(4)在LIBPATH部分增加路径$ORACLE_HOME/lib

相关资源:谷歌安装器(如果Go安装器无法打卡可以使用这个)
转载请注明原文地址: https://www.6miu.com/read-4952979.html

最新回复(0)