安装数据库,中途用到"sudo su -",结果报错:
[oracle@xxx Software]$ sudo su -
[sudo] password for oracle:
oracle is not in the sudoers file. This incident will be reported.
[oracle@xxx Software]$
处理方法就是切换到root(找管理员),执行 “visudo”,添加一行如下:
oracle ALL=(ALL) ALL
加上原有的一行root,总体如下:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
oracle ALL=(ALL) ALL
参考URL:
http://blog.csdn.net/zhuqinglu/article/details/2050927