环境:
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 --
阅读(391) | 评论(0) | 转发(0) |