Datastage An error occurred while loading the DB2 library entry points

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/you_xian/article/details/50725751

作者:lianghc

环境信息:datastage server:8.5 x64  安装在redhat 6.5 x86_64 系统中

问题描述:在win7中安装了datastage 8.5客户端,配置好Administrator后,创建第一个并行job,当连接db2使用db2 udb stage时 报错:An error occurred while loading the DB2 library entry points


问题分析:该问题是datastage没有找到db2的lib连接库。

解决方法:

1.用root登陆datastage server 所在服务器。

2.编辑  /opt/IBM/InformationServer/Server/DSEngine/dsenv 文件,在$LD_LIBRARY_PATH 前 加入/opt/IBM/db2/V9/lib64(如果是32位系统则加入/opt/IBM/db2/V9/lib32),以冒号分割。

2. 使dsenv 生效:source /opt/IBM/InformationServer/Server/DSEngine/dsenv

3.重启DSEngine

cd /opt/IBM/InformationServer/Server/DSEngine/bin
./uv -admin -stop
./uv -admin -start

4.重启ASBNode

cd /opt/IBM/InformationServer/ASBNode/bin
. ./NodeAgents_env_DS.sh
./NodeAgents.sh stopAgent
./NodeAgents.sh start


官方帮助文档:

Setting environment variables for IBM DB2 libraries

You must set specific environment variables for the DB2® connector to find third-partydirectories.

Before you begin

InfoSphere™ Information Server mustbe installed in the default directory /opt/IBM/InformationServer.
Note: Thelibrary path environment variable is different for different operatingsystems. The following table lists the library path environment variablesfor different operating systems:
Operating system Environment variable
Microsoft® Windows® Path
IBM® AIX® LIBPATH
Linux® LD_LIBRARY_PATH
About this task
The DB2 library directoryis not in the library path environment variable by default. Thereforethe DB2 connector does not automaticallylocate the DB2 library directory.As a result, you receive the following error in the log:
[IIS-CONN-DB2-000032] An error occurred while loading the DB2 library entry points.
Tomake the DB2 libraries accessibleto the DB2 connector:
  1. Locate the directory that contains the DB2 libraries. By default, the DB2 libraries are in the followingdirectory:
    • Microsoft Windows operating system: C:\IBM\SQLLIB\bin
    • UNIX® operating system:/opt/IBM/db2/V9/lib32
    Contact your DB2 Administratorif you do not find the libraries in these paths.
  2. Modify the library path environment variable to includethe appropriate directory for the user that runs the DB2 connector process. One of theways to modify the library path environment variable by updating thedsenv script. To modify the dsenv script:
    1. Add the DB2 librarydirectory to the library path environment variable in the dsenv scriptin/opt/IBM/InformationServer/Server/DSEngine.
    2. Log in as root.
    3. Type the following commands to source the dsenv script:./opt/IBM/InformationServer/Server/DSEngine/dsenv
    4. Type the following commands to restart theInfoSphere Information Server engine and the ASB agent:
       

cd /opt/IBM/InformationServer/Server/DSEngine/bin
./uv -admin -stop
./uv -admin -start
cd /opt/IBM/InformationServer/ASBNode/bin
. ./NodeAgents_env_DS.sh
./NodeAgents.sh stopAgent
./NodeAgents.sh start


猜你喜欢

转载自blog.csdn.net/you_xian/article/details/50725751