0

While installing Oracle 11g in Ubuntu 12.04 LTS,it showing error as Universal Installer can not run under root.

How can I solve this problem??Please help me.

3
  • Ubuntu is AFAIK not listed as supported OS by Oracle. Nevertheless, at least in the past (up to 10g) an installation was possible. Could you please quote the error you are getting?
    – Izzy
    Jul 2, 2012 at 23:24
  • @Izzy there are workarounds listed on the internet to install 11g onto Ubuntu, but they're lengthy and you have to modify everything, so...
    – Thomas Ward
    Mar 18, 2013 at 23:44
  • @TheLordofTime They've never been short, not even the ones for RedHat (which is officially supported): from Kernel adjustments to package requirements, a lot of things to do...
    – Izzy
    Mar 19, 2013 at 7:32

1 Answer 1

0

Oracle installer wants to run as oracle user. So as a pre-requisite you must create the appropriate user and group:

groupadd -g 50000 dba
groupadd -g 50001 oinstall
useradd -u 50000 -m -d /local/oracle -g oinstall -G dba oracle

(where /local/oracle is the home directory, you could also use /home/oracle instead). Having that done, you can sudo su - oracle and run the installer. Make sure all pre-requisites (kernel parameter, ulimits, etc.) are met (check with the Oracle documentation for that).

Still, the installer may refuse to do its job when detecting no supported OS. I don't know if any Debian-like system is supported; on Redhat derivates (e.g. CentOS) it worked to fake the /etc/redhat-release to reflect a supported system.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .