vi /home/oracle/.bash_profile

在末尾加上

export EDITOR=vi

重点:EDITOR 必须大写,等号两边不能有空格