ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ggsci error libclntsh.so.10.1: cannot restore segment prot after reloc

ggsci error libclntsh.so.10.1: cannot restore segment prot after reloc

原创 Linux操作系统 作者:it_newbalance 时间:2012-08-24 14:16:10 0 删除 编辑

在64位linux操作系统上部署goldengate过程中发现如下错误:
[oracle@localhost ogg]$ ./ggsci
./ggsci: error while loading shared libraries: /home/oracle/product/10.2.0/lib/libclntsh.so.10.1: cannot restore segment prot after reloc: Permission denied

查找资料,没有专门说ogg安装这个错误,是SELinux启用导致,但是有很多其他程序执行过程中报类此错误是有此导致:
1、查看SELinux是否被关闭
[oracle@localhost tmp]$ more /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted – Only targeted network daemons are protected.
# strict – Full SELinux protection.
SELINUXTYPE=targeted
说明在系统安装的时候,选择了默认值,需进行关闭。

2、查看SELINUX修改是否生效
[root@localhost ~]# getenforce
Enforcing
处于启动状态

usage:  setenforce [ Enforcing | Permissive | 1 | 0 ]

3、使SELINUX生效
[root@localhost ~]# setenforce 0
再次查询,现在已经生效
[root@localhost ~]# getenforce
Permissive

4、然后启动ggsci
[[oracle@localhost ogg]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x64, 64bit (optimized), Oracle 10g on Apr 23 2012 07:30:46

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

GGSCI (localhost.localdomain) 1>

启动正常

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24558279/viewspace-741834/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: oracle IO 问题解析
请登录后发表评论 登录
全部评论

注册时间:2011-03-28

  • 博文量
    143
  • 访问量
    743737