oracle goldengate 数据库实例,案例:Oracle goldengate报错ggsci: error while loading shared libraries:...

天萃荷净

Oracle goldengate配置时报错ggsci: error while loading shared libraries

在部署goldengate过程中发现如下错误:

[oracle@localhost OGG]$ ggsci

ggsci: error while loading shared libraries: /opt/oracle/product/10.2.0/db_1/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=disabled

# SELINUXTYPE= type of policy in use. Possible values are:

# targeted – Only targeted network daemons are protected.

# strict – Full SELinux protection.

SELINUXTYPE=targeted

说明已经关闭。那就奇怪了,既然已经闭关了那为什么还不行?于是我怀疑,是不是有人只是修改了SELINUX=disabled,没有重启系统或者使用命令使其生效导致。

2、查看SELINUX修改是否生效

[root@localhost ~]# getenforce

Enforcing

果然修改没有生效

3、使SELINUX生效

[root@localhost ~]# setenforce 0

再次查询,现在已经生效

[root@localhost ~]# getenforce

Permissive

4、然后启动ggsci

[oracle@localhost ~]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 11.1.1.1.1 OGGCORE_11.1.1.1.1_PLATFORMS_110729.1700

Linux, x64, 64bit (optimized), Oracle 10g on Jul 29 2011 19:43:29

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

--------------------------------------ORACLE-DBA----------------------------------------

最权威、专业的Oracle案例资源汇总之案例:Oracle goldengate报错ggsci: error while loading shared libraries:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值