手机版
你好,游客 登录 注册
背景:
阅读新闻

OGG登陆报cannot open shared object file错误处理

[日期:2015-01-25] 来源:Linux社区  作者:黎俊杰 [字体:大 中 小]

1、错误现象
Linux服务器上,新安装的goldengate(OGG),使用./ggsci登陆控制台报出./ggsci: error while loading shared libraries: libnnz11.so: cannotopen shared object file: No such file or directory错误。

2、原因分析
因为运行OGG的用户的没有设置LD_LIBRARY_PATH环境变量,或设置不正确所致。

3、解决方法:
在.bash_profile中增加LD_LIBRARY_PATH环境变量配置信息,添加内容如下:

export OGG=/u01/ogg

export LD_LIBRARY_PATH=$Oracle_HOME/lib:/u01/ogg
 

  应用新的环境变量配置:

[oracle@server2 ]$ source .bash_profile

4、结果
./ggsci登陆控制台成功:

[oracle@server2 ~]$ source .bash_profile

[oracle@server2 ~]$ cd $OGG

[oracle@server2 ogg]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100

Linux, x64, 64bit (optimized), Oracle 11g on Oct  4 2011 23:49:46

Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.

GGSCI (server2) 1>

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-01/112366.htm

linux
相关资讯       OGG 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款