/u01/app/oracle/oracle/ogg/ggsci: error while loading shared libraries: libdb-6.1.so: cannot open shared object file: No such file or directory
增加脚本环境变量设置
PATH=$PATH:$HOME/bin
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/11/db_1
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
export PATH
export SQLPATH=/home/oracle/labs
export nls_lang=american_america.zhs16gbk
export GGATE_HOME=/u01/app/oracle/oracle/ogg
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
#export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64/
#$ORACLE_HOME/lib
chmod -R 777 $ORACLE_HOME/lib 增加zabbix用户的执行权限
本文转自 bobo5900pro 51CTO博客,原文链接:http://blog.51cto.com/bobo5900pro/1961140,如需转载请自行联系原作者