Php Error While Loading Shared Libraries Libnnz11.so
Linux The below error might be encountered while initializing the GGSCI prompt for Oracle GoldenGate. [oracle@ogg1 ogg]$ ./ggsci ./ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory There are two ways to resolve this error. We can follow either ways. By setting the LD_LIBRARY_PATH in the environment By creating the soft links for the missing Library Files 1. Setting the LD_LIBRARY_PATH Edit the .bash_profile to the add the LD_LIBRARY_PATH vi .bash_profile export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib Save the file and execute the proflie . ./.bash_profile Note - profile names changes according to the Operating System we use. Here in this example, I have used OEL (Oracle Enterprise Linux) Check whether GGSCI Prompt is working [oracle@ogg1 ogg]$ ./ggsci Oracle GoldenGate Command Interpreter for Oracle Version 12.1.2.0.0 17185003 OGGCORE_12.1.2.0.0_PLATFORMS_130924.1316_FBO Linux, x64, 64bit (optimized), Oracle 11g on Sep 25 2013 00:31:13 Operating system character set identified as UTF-8. Copyright (C) 1995, 2013, Oracle and/or its affiliates. All rights reserved. GGSCI (ogg1.localdomain) 1> 2. Creating Soft Links for the missing Library Files Secondly, You can create a soft link for the Missing Library files under GoldenGate home. Go to the GoldenGate Home [oracle@ogg1 ~]$ cd /ogg Create the soft links., [oracle@ogg1 ogg]$ ln -s $ORACLE_HOME/lib/libnnz11.so libnnz11.so [oracle@ogg1 ogg]$ [oracle@ogg1 ogg]$ ln -s $ORACLE_HOME/lib/libclntsh.so.11.1 libclntsh.so.11.1 Check whether GGSCI Prompt is working [oracle@ogg1 ogg]$ ./ggsci Oracle GoldenGate Command Interpreter for Oracle Version 12.1.2.0.0 17185003 OGGCORE_12.1.2.0.0_PLATFORMS_130924.1316_FBO Linux, x64, 64bit (optimized), Oracle 11g on Sep 25 2013 00:31:13 Operating system character set identified as UTF-8. Copyright (C) 1995, 2
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only http://www.oracle-scn.com/ggsci-error-while-loading-shared-libraries-libnnz11-so-cannot-open-shared-object-file-no-such-file-or-directory/ takes a minute: Sign up libaio.so.1: cannot open shared object file up vote 23 down vote favorite 3 I have a simple test program that when I run I get: ./hello: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory I link it like this: $(CC) $(CCFLAGS) -o hello hello.o -L../ocilib-3.9.3/src/.libs -L../instantclient_11_2 -locilib My http://stackoverflow.com/questions/10619298/libaio-so-1-cannot-open-shared-object-file LD_LIBRARY_PATH contains this: LD_LIBRARY_PATH=../ocilib-3.9.3/src/.libs:../instantclient_11_2:/usr/lib /usr/lib looks like this: Linux$ ls -l /usr/lib/libaio* lrwxrwxrwx 1 root root 15 Nov 5 2008 /usr/lib/libaio.so.1 -> libaio.so.1.0.1 -rwxr-xr-x 1 root root 2632 Sep 16 2005 /usr/lib/libaio.so.1.0.0 -rwxr-xr-x 1 root root 2628 Sep 16 2005 /usr/lib/libaio.so.1.0.1 Output of ldd hello: libocilib.so.3 => ../ocilib-3.9.3/src/.libs/libocilib.so.3 (0x0000002a95558000) libc.so.6 => /lib64/tls/libc.so.6 (0x0000003811200000) libclntsh.so.11.1 => ../instantclient_11_2/libclntsh.so.11.1 (0x0000002a956c4000) /lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000) libnnz11.so => ../instantclient_11_2/libnnz11.so (0x0000002a97f56000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003811500000) libm.so.6 => /lib64/tls/libm.so.6 (0x0000003811700000) libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000003811b00000) libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003819000000) libaio.so.1 => not found I'm hoping that I'm missing something simple here. The oracle instantclient package appears to require libaio, but that seems to be installed already so what's the problem? linux oracle oci share|improve this question edited May 16 '12 at 13:27 asked May 16 '12 at 13:11 wytten 7731526 1 Post the output of $ ldd hello. –trojanfoe May 16 '12 at 13:17 It looks like you need a 64-bit version of the library which you do not have. –n.m. May 16 '12 at 13:38 add a comment| 5 Answers 5 active oldest votes up vote 27
返回顶部 收藏OGG启动报错:./ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such http://bbs.cqsztech.com/forum.php?mod=viewthread&tid=2555 file or directory 更多 OGG oracle 从oracle下载ogg之后,解压缩, 执行./ggsci时报错: ./ggsci: error while loading shared libraries: libnnz11.so: cannot php error open shared object file: No such file or directory 这是因为在ogg的安装目录下缺少了libnnz11.so ,如果这台服务器上已经安装了oracle,那这个文件肯定是存在的,可以find这个文件: find / -name libnnz11.so 查找结果类似: /home/database/stage/ext/lib/libnnz11.so /home/oracle_11gr2/product/11.2.0/db_1/lib/libnnz11.so /home/oracle_11gr2/product/11.2.0/db_1/inventory/Scripts/ext/lib/libnnz11.so /home/oracle_11gr2/product/11.2.0/db_1/inventory/backup/2014-08-07_01-53-06AM/Scripts/ext/lib/libnnz11.so /tmp/OraInstall2014-08-07_01-50-42AM/ext/lib/libnnz11.so /tmp/OraInstall2014-08-07_01-50-08AM/ext/lib/libnnz11.so 找到文件之后可以使用cp命令复制文件libnnz11.so到ogg的安装目录下。 例如: cp /home/oracle_11gr2/product/11.2.0/db_1/lib/libnnz11.so /root/ogg/app/ 这样就可以了,如果有类似提示,可以使用相同的办法解决问题。 标签:OGG,oracle 编辑 | 删除 收藏 php error while 0人收藏 支持 1 顶 反对 0 踩 »更多 您可能感兴趣的代码 2014-09-30 11:25:46重置ogg抽取进程位点 by 金背二郎 2013-03-30 12:38:35exp远程备份oracle脚本 by 好剑 2013-05-24 19:05:22oracle聚合函数sum over 使用示例 by antkingwei 2013-06-01 13:26:00oracle IF THEN END IF使用示例 by Smile_love 2013-06-20 10:08:11oracle动态表 by 蟋蟀MM 2013-07-18 18:40:41oracle创建倒序索引 by 董一碗 2014-09-24 13:24:32oracle 生成自增序列 by Ev4n 2015-01-13 10:59:47oracle类型转换示例代码将char类型转换为number类型 by 二糊 2013-04-08 10:48:26oracle 创建job 语句 by LeoSun 2013-05-25 13:57:42oracle用户自定义表数据类型使用示例 by 千万不要郁闷 2016-06-28 22:08:30使用jsr validation动态代理验证java bean by 甄码农 相关聚客文章 Maclean Liu 发表 2014-09-19 12:50:03 2014年Oracle技术控 Orcl-Con活动报名 惜分飞 发表 2014-09-30 02:35:39 MOS又一次不靠谱—ORA-27163: out of memory 钱多多 发表 2014-03-06 11:11:31 贪心不足的Auto DOP Travel.liu 发表 2014-10-22 04:11:16 10gRac_restore_ocr xiaoyu 发表 2014-11-14 08:55:01 bitmap index及其执
û Ǹָⲻڻѱɾڱ |ֻ|С|˼ׯIT̳ ( ICP12004239-1 ) GMT+8, 2016-10-24 12:19 , Processed in 0.085470 second(s), 3 queries . Powered by Discuz! X3.2 © 2001-2013 Comsenz Inc. ض