Home > Database > Mysql Tutorial > oracle 11g在CentOS 5.5上安装以后,sqlplus不能使用

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

WBOY
Release: 2016-06-07 15:18:52
Original
1361 people have browsed it

假如我的安装路径如下:/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>

就成功了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template