What is that?

Oracle XE – “Oracle Database 10g Express Edition (Oracle Database XE) is an entry-level, small-footprint database based on the Oracle Database 10g Release 2 code base that’s free to develop, deploy, and distribute; fast to download; and simple to administer….

RHEL – is Linux for enterprise environment.

CentOS“is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor.” Aiming for binary compatibility with RHEL.

After first month of releasing CentOS 5.0 one of the questions was will Oracle and RHEL continue to work together and certify their products after release of Oracle Unbreakable Linux -based on RHEL.
Recently Redhat added Oracle Database 10gR2 to their software catalog, but in the meantime Oracle released Oracle Database 11g.

Enough theory let’s start.

First you need to download Oracle XE. I prefer(and recommend) using universal edition.

Then it becomes much simpler.

Just issue(from terminal):

rpm -ivh <path to oracle rpm>

In case of missing packages see my previous post for a way to install them.

After successful installation the installer instruct you to run:
/etc/init.d/oracle-xe configure

for initial configuration. Read carefully the questions and remember system password.

Then you are ready to use XE.

Just start the browser and type:

http://localhost:8080/apex

If you are not familiar with Oracle there are step by step instructions here and here, and official documentation here.

Troubleshooting:

If you cannot access web server after successful installation check your host name it seems that oracle xe do not likes FQDN hostname. In case that you do not have DNS server enter your FQDN in local hosts file.

Credits for the tip goes to Emerson.

Comments

6 Responses to “Install ORACLE XE on RHEL (CentOS) 5”

  1. Eric on January 22nd, 2010 5:51 pm

    Thanks. Just did an install on Centos 5.3 32bit desktop (gnome) and it went flawlessly.

  2. mike m on May 11th, 2010 12:06 pm

    I have tried to re-install this on Centos 5.2, it will not work. The 8080 listener will never come up.Is this logged anywhere?

  3. k1 on July 20th, 2010 2:23 pm

    There are a couple things I have found to be useful/necessary to get the XE install to run properly:

    – as noted above, make sure that your hostname resolves to your IP address, either through DNS or via the /etc/hosts file. If not, the create-database portion of the configure step will not create a database

    – change the ownership of the hidden directory /var/tmp/.oracle (chown oracle.dba /var/tmp/.oracle) after installing the rpm (rpm -ivh oracle-xe…) but prior to the configure step (/etc/init.d/oracle-xe configure). If you don’t, the database won’t start up again after a reboot.

  4. Kura on July 28th, 2010 3:32 am

    Is there any need to create user groups such as dba, oinstall and the oracle user as in the case with other oracle database versions when before u install?

  5. hb on July 28th, 2010 7:23 am

    No, the is no need.

    The installation script takes care of those if needed.

  6. UK VPS on July 17th, 2013 1:59 pm

    Excellent posting. Very rarely will you see as
    good a set of clear views on the web hosting market.
    Congratulations!
    appreciate the read! Will certainly be back in the future!

Leave a Reply