码迷,mamicode.com
首页 > 数据库 > 详细

3、Ora_Q3_bash: sqlplus: command not found 解决方法

时间:2016-06-17 08:34:20      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:bash: sqlplus: command not found

bash: sqlplus: command not found 解决方法

 

环境变量已经配好,但是仍报错:

 

# vi  .bash_profile

 

# .bash_profile

 

# Get the aliasesand functions

if [ -f ~/.bashrc ];then

        . ~/.bashrc

fi

 

# User specificenvironment and startup programs

 

PATH=$PATH:$HOME/bin

#AddORACLE_SID ,ORACLE_BASE,ORACLE_HOME AND PATH

exportPATH

unsetUSERNAME

exportEDITOR = vi

exportORACLE_SID = orcl

export ORACLE_BASE = /u01/app/oracle

exportORACLE_HOME = $ORACLE_BASE/product/11.2.0/dbhome_1/

export PATH = $PATH:/u01/app/oracle/product/11.2.0/dbhome_1/bin

umask 022

 

【解决方法】

# su -root

# ln -s /u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus  /usr/bin

# su  - oracle

$sqlplus/nolog

SQL>conn  / as sysdba

Connected to an idleinstance.

 

SQL>startup

 

ORACLEinstance started.

……

Database mounted.

Databaseopened.


本文出自 “奋斗不止” 博客,请务必保留此出处http://peenboo.blog.51cto.com/2865551/1790114

3、Ora_Q3_bash: sqlplus: command not found 解决方法

标签:bash: sqlplus: command not found

原文地址:http://peenboo.blog.51cto.com/2865551/1790114

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!