Home >Database >Mysql Tutorial >安装GoldenGate 报找不到Libnnz10.so 文件

安装GoldenGate 报找不到Libnnz10.so 文件

WBOY
WBOYOriginal
2016-06-07 17:24:131079browse

./ggsci: error whileloading shared libraries: libnnz10.so: cannot open shared object file: No suchfile or directory.很明

错误现象:

./ggsci: error whileloading shared libraries: libnnz10.so: cannot open shared object file: No suchfile or directory.

问题分析:

很明显是因为在执行./ggsci文件的时候需要库文件libnnz10.so的支持,没有找到故报如上错误。那么首先就应该想到库文件存放在哪个位置,检查LD_LIBRARY_PATH环境变量是否配置正确。

解决步骤:

1、查看LD_LIBRARY_PATH环境变量配置是否正确:

[ogg@prudentwoo ~]$ echo $LD_LIBRARY_PATH  ---我们可以看到这里是没有问题的

/DBSOFT/produce/11.2.0/db_1/lib

 

2、查看libnnz10.so文件是否存在:

[ogg@prudentwoo ogg]$ cd $Oracle_HOME/lib

[ogg@prudentwoo lib]$ ll libnnz1*

-rw-r--r-- 1 oracle oinstall 9020808Aug  2 2009 libnnz11.a

-rw-r--r-- 1 oracleoinstall 6986848 Aug  2  2009 libnnz11.so  --在这里可以看到这个文件

[ogg@prudentwoo lib]$

 

因为我安装的是Oracle 11g 故是 libnnz11.so,而GoldenGate 是10g的版本,所以他查找的是libnnz10.so文件,,那么既然这样就很简单了,我们只需在原路径下创建一个快捷方式即可。

 

3、创建libnnz11.so的快捷方式至libnnz10.so

[oracle@prudentwoo lib]$ ln -s libnnz11.solibnnz10.so

[oracle@prudentwoo lib]$

 

4、创建完快捷方式,问题解决:

[ogg@prudentwoo ogg]$ ./ggsci

 

Oracle GoldenGate Command Interpreter for Oracle

Version 11.1.1.0.0 Build 078

Linux, x86, 32bit (optimized), Oracle 10 on Jul 28 201013:24:18

Copyright (C) 1995, 2010, Oracle and/or its affiliates. Allrights reserved.

 

GGSCI (prudentwoo.localdomain) 1>

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn