配置Oracle环境变量时 -bash: export: ` ': not a valid identifier

出现问题的原因是export后的内容存在空格,只需将空格删除即可

[root@wyu soft]# su - oracle
Last login: Sat Oct  6 10:45:08 CST 2018 on pts/0
-bash: export: ` ': not a valid identifier
-bash: export: ` ': not a valid identifier
-bash: export: ` ': not a valid identifier

这个时候进入Oracle用户

查看设置的环境变量并未生效

只需将上图空格删除,执行source /home/oracle/.bash_profile即可生效

猜你喜欢

转载自blog.csdn.net/weixin_42774383/article/details/82949624