>  기사  >  데이터 베이스  >  oracle 11g在CentOS 5.5上安装以后,sqlplus不能使用

oracle 11g在CentOS 5.5上安装以后,sqlplus不能使用

WBOY
WBOY원래의
2016-06-07 15:18:521321검색

假如我的安装路径如下:/home/lxm/app/lxm/product/11.2.0/dbhome_1/bin 那么在/home/lxm/.bash_profile 文件中添加如下内容: export ORACLE_BASE=/home/lxm/app/lxm export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export ORACLE_SID=orcl expo

假如我的安装路径如下:/home/lxm/app/lxm/product/11.2.0/dbhome_1/bin

 

那么在 /home/lxm/.bash_profile
文件中添加如下内容:
export ORACLE_BASE=/home/lxm/app/lxm
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl    
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

 

然后执行:soruce  /home/lxm/.bash_profile
使其生效即可

输入sqlplus /nolog

出现如下提示:

[lxm@wn7-lcg /]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Mon Oct 15 14:10:56 2012

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL>

就成功了

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.