Chinaunix首页 | 论坛 | 博客
  • 博客访问: 496885
  • 博文数量: 401
  • 博客积分: 244
  • 博客等级: 入伍新兵
  • 技术积分: 2215
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-04 10:02
文章分类

全部博文(401)

文章存档

2013年(37)

2012年(364)

分类:

2012-11-15 13:00:33

原文地址:LD_LIBRARY_PATH变量设置 作者:hxl

环境:
OS:Red Hat Linux As 5
DB:10.2.0.4
 
1.执行字符集检查的命令csscan提示找不到连接库
[oracle@hxl ~]$ csscan
csscan: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
[oracle@hxl ~]$
 
2.查看oracle用户的profile
[oracle@hxl ~]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PS1="`/bin/hostname -s`-> "
export EDITOR=vi
export ORACLE_SID=oracl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/b
in:/sbin
umask 022
export PATH
unset USERNAME
 
明明是设置了LD_LIBRARY_PATH变量的,怎么不生效呢,后来在.bashrc文件中添加该变量问题解决.
[oracle@hxl ~]$ more .bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/u01/app/oracle/product/10.2.0/db_1/lib
 
[oracle@hxl ~]$ csscan

Character Set Scanner v2.1 : Release 10.2.0.0.0 - Production on Mon Jul 9 21:55:39 2012
Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Username:

 
-- The End --
阅读(385) | 评论(0) | 转发(0) |
0

上一篇:如何生成awr报告

下一篇:smb配置文件详解

给主人留下些什么吧!~~