redhat8添加sqlplus,lsnrctl快捷命令
1.在oracle用户下切换到root用户 su - root
2.chmod u+w /etc/sudoers
3.将oracle用户添加到sudoers文件,写到root用户的下面
4.chmod u-w /etc/sudoers
5.退出root用户,exit
6.sudo ln -s /home/oracle/orcldb/pack/bin/sqlplus /usr/local/bin/sqlplus
7.sudo ln -s /home/oracle/orcldb/pack/bin/lsnrctl /usr/local/bin/lsnrctl
8.记住一定要写绝对路径。