How to Install Oracle Database 12c on RHEL/CentOS 7

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Gabriel Cánepa

Gabriel Cánepa is a GNU/Linux sysadmin and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

14 Responses

  1. pawel says:

    If you are already logged as oracle user, changes in step 3 take effect only after log-out and log-in. Otherwise installer will not find proper ODSBA group and will suggest only oracle or wheel group.

  2. Nalima says:

    1) Need to set stack size also for oracle in /etc/security/limits.conf

    2) Typo 12.1.0 should be 12.2.0 in

    ORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1
    
  3. Jason says:

    Step 4, there is a typo:

    # sysct -a
    

    should be:

    # sysctl -a
    
  4. Leftbrake says:

    In my case an extra line was necessary in limits.conf to pass the pre-cheks: oracle soft stack 10240

    And a question: is it safe to remove X Windows System and GNOME after successful installation?

  5. Simon says:

    But wow, Oracle 12 is still using Flash for Enterprise Manager ? I haven’t worked with Oracle since 10g, but thought by now they would have gotten rid of Flash by now..

  6. Simon says:

    Very nice step-by-step description to get Oracle 12 up and running.

    One small remark, in step 18 after you change the listener.ora you will have to stop/start the listener to make the changes take effect. (lsnrctl stop / lsnrctl start).

  7. Kumar Shorav says:

    Hi,

    I would like to know how I can implement step 7.

    Step 7. Open a GUI session in the RHEL/CentOS 7 server and launch the installation script.

    I have IBM cloud server machine and am able to connect through Putty. I installed Java 8 through Putty. I don’t have GUI.

    How do I do that?
    Please answer.
    Thanks’

    • Ravi Saive says:

      @Kumar,

      Try to launch the same installer script from the command-line and see, how it works? if it didn’t start, try to install GUI.

  8. Azhar says:

    Hi, thank you so much for this great tutorial.

    I have facing a problem when i run “runInstaller”.

    “Can’t connect to X11 window server using ‘:0’ as the value of the DISPLAY variable.”

    please help.

  9. Bartagnan says:

    Thank you so much Santiago for all the detailed steps!!

    Just one remark : to fully enable Oracle starting @ system boot use the following command.

    # systemctl enable oracle-rdbms.service
    

    It’s perfect!
    To be continued…

  10. Jemel B. says:

    Please check Step 17. You have a typo in the $ORACLE_HOME variable. You reference product 12.1.0, when it should be 12.2.0. Also, what are the credentials to login into the web interface?
    Thanks I completed my first install because of your article.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.