在Ubuntu上找不到sqlplus:命令

在Ubuntu上找不到sqlplus:命令,ubuntu,sqlplus,Ubuntu,Sqlplus,我刚刚在Ubuntu上安装了Oracle Database 11g R2 我试图运行sqlplus,但收到以下消息: sqlplus: command not found 这些是:$ORACLE\u SID、$ORACLE\u HOME和$PATH的值 aimad@localhost:/u01/app/oracle/product/11.2.0/dbhome_2/bin$ echo $ORACLE_SID aimad@localhost:/u01/app/oracle/product/11.

我刚刚在Ubuntu上安装了Oracle Database 11g R2

我试图运行
sqlplus
,但收到以下消息:

sqlplus: command not found
这些是:$ORACLE\u SID、$ORACLE\u HOME和$PATH的值

aimad@localhost:/u01/app/oracle/product/11.2.0/dbhome_2/bin$ echo $ORACLE_SID

aimad@localhost:/u01/app/oracle/product/11.2.0/dbhome_2/bin$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/dbhome_2/
aimad@localhost:/u01/app/oracle/product/11.2.0/dbhome_2/bin$ echo $PATH
/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/root/bin

如何解决此问题?

将path
/u01/app/oracle/product/11.2.0/dbhome\u 2/bin
添加到
$path
变量:

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