切换账户提示:-bash: rac2.localdomain: command not found
2013-12-21 15:28
471 查看
在操作账户的时候发现一个问题,切换中间提示-bash: rac2.localdomain: command not found,
但是和还能切换成功,最后发现ORACLE_HOSTNAME= rac1.localdomain;的等号和名字之间有个空格
去掉空格之后正常,嘿嘿,
在网上有些人可能同样的问题,有的是在if判断语句处没有空格,比如if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
在中括号和变量之间必须有空格,否则也会有相应的问题
这个问题小记下
但是和还能切换成功,最后发现ORACLE_HOSTNAME= rac1.localdomain;的等号和名字之间有个空格
去掉空格之后正常,嘿嘿,
在网上有些人可能同样的问题,有的是在if判断语句处没有空格,比如if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
在中括号和变量之间必须有空格,否则也会有相应的问题
这个问题小记下
相关文章推荐
- linux下提示bash:command not found
- (Ubantu)使用gcc编译一个程序a.c成a.out,输入a.out运行,提示bash:a.out:command not found,怎么回事
- inux下提示bash:command not found
- linux下提示 -bash: ******* :command not found
- CentOS系统 给PHP打fpm补丁时提示 -bash: patch: command not found
- Linux 提示:“bash: ifconfig: command not found”
- ifconfig命令无法找到,提示bash: ifconfig: command not found
- linux下使用shutdown命令关机,提示: -bash:shutdown:command not found
- secureCRT连接后提示-bash: User: command not found的解决办法
- linux下提示bash:command not found
- linux下提示bash:command not found
- Linux下bash:command not found提示
- telnet不能用!!!提示:-bash: telnet: command not found
- 安装ns-2.27,提示bash:ns:command not found
- man ifconfig时提示:-bash: man: command not found
- 解决Linux调试中提示信息:bash: groupadd: command not found
- 执行 pod install后提示 -bash: pod: command not found(未找到命令)的解决方法
- vue.js 错误提示bash: vue: command not found
- man ifconfig时提示:-bash: man: command not found
- linux下提示bash:command not found