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

it_newbalance發表於2012-08-24

在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部落格 ” ,連結:http://blog.itpub.net/24558279/viewspace-741834/,如需轉載,請註明出處,否則將追究法律責任。

相關文章