Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6547416
  • 博文数量: 1005
  • 博客积分: 8199
  • 博客等级: 中将
  • 技术积分: 13071
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-25 20:19
个人简介

脚踏实地、勇往直前!

文章分类

全部博文(1005)

文章存档

2020年(2)

2019年(93)

2018年(208)

2017年(81)

2016年(49)

2015年(50)

2014年(170)

2013年(52)

2012年(177)

2011年(93)

2010年(30)

分类: LINUX

2012-07-09 21:44:59

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

上一篇:恢复例子

下一篇:Xmanager如何连接Solaris

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