How-to : Install oracle-XE 10G on a CentOS 6.2 i686 box

oracle

Introduction

This post will give you a guideline to install oracle express edition (free but limited) version 10g on a CentOS box. This guide is not supposed to be bullet-proof : Oracle is a big and complex system which requires a quite some experience, but i do follow those steps to install my testing-server on a virtual machine and went through every time, so it is not that bad!

1 Pre-requisite

  1. Make sure you have your computer $HOSTNAME on the local loop line as (for cavepopo.hd.free.fr)
    127.0.0.1   localhost cavepopo.hd.free.fr
    ::1         localhost cavepopo.hd.free.fr
  2. Disable selinux, as the express edition of oracle server is not a full featured one it is usually used for testing purposes (or school purpose, which is my case) so disabling selinux will greatly simplify the process without being risky on a production machine.

    sed -i.bak 's/enforcing$/disabled/' /etc/sysconfig/selinux
  3. Disable firewall, for the same reasons this should not be a problem
    /etc/init.d/iptables stop
    /etc/init.d/ip6tables stop

Once you did this you are ok to install the oracle server.

 

2 Installing oracle-xe

  • Download the rpm from oracle web site : http://download.oracle.com/otn/linux/oracle10g/xe/10201/oracle-xe-10.2.0.1-1.0.i386.rpm (registration required)
  • cd to the download directory
  • Install the rpm
    rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
  • launch the configure script
    /etc/init.d/oracle-xe configure
  • ┬áreboot your machine

 

After the reboot you should be able to reach the oracle instance homepage using :

firefox http://<em>127.0.0.1:8080/apex</em>


Note : 8080 is the default port, change this value for the port you have specified during the oracle server configure script.

 

Bonus : you may want to automatically start the oracle instance on boot, use this :

  • chkconfig oracle-xe on
  • sed -i.bak 's/N$/Y/' /etc/oratab

 

Leave a Reply

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

This site supports SyntaxHighlighter via WP SyntaxHighlighter. It can highlight your code.
How to highlight your code: Paste your code in the comment form, select it and then click the language link button below. This will wrap your code in a <pre> tag and format it when submitted.