I'm currently installing Oracle 11g on Ubuntu 10.10
It had been asked to execute some scripts as "root" while installation.
I'm doing:
oracle@sergio:/u01/app/oraInventory$ sudo sh orainstRoot.shAnd got:
[sudo] password for oracle:
oracle is not in the sudoers file. This incident will be reported.How could I actually run these scripts if I logged under oracle user with "root" privileges?
thank you for help.
4 Answers
Although I do not have experience in Oracle installation, the error message makes me think, this might work:
sudo adduser oracle adminThis will add the user 'oracle' to the admin group, and the 'admin' group is in the sudoers file by default.
Edit: you need to run this command as the very first user of your system (the one you had to name during install), or as a root (in this case you do not need the sudo part).
Normally, the DBA would request the system administrator to run the script requiring root access. It is uncommon to grant the oracle user sudo access. This violates the separation of privileges.
Run the script using sudo from the account you usually use to install packages and do other things that require root privileges.
Oracle user only for accessing Oracle Database and installation files.
Please follow below article.
Installing Oracle 11g on Ubuntu
Don't start the installation as the "oracle" user. Use sudo from your current desktop user or use root (without sudo).
Than in your case
oracle@sergio:/u01/app/oraInventory$ sudo sh orainstRoot.shshould be started from sergio user:
sergio@sergio:/u01/app/oraInventory$ sudo sh ./orainstRoot.sh