on CentOS 6, Oracle Linux 6 and Red Hat Enterprise Linux 6 (x86_64)
Download Oracle 11gR2 XE from www.oracle.com
Open a terminal and become root, then go to the folder you downloaded the file to.
su - root unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip cd Disk1 rpm -Uvh oracle-xe-11.2.0-1.0.x86_64.rpm /etc/init.d/oracle-xe configureThats it!
You can now stop and start the database with:
/etc/init.d/oracle-xe stop /etc/init.d/oracle-xe startYou might also want to add the oracle binaries in your $PATH so you can access sqlplus, rman and other commands.
Open a terminal and become root. Then cut n' paste the script below into:
/etc/profile.d/oracle.sh
su - root vi /etc/profile.d/oracle.shEnter this script:
if ! echo ${PATH} | /bin/grep -q /u01/app/oracle/product/11.2.0/xe/bin ; then PATH=/u01/app/oracle/product/11.2.0/xe/bin:${PATH} fiSave it, then close the terminal and open a new one for the change to take effect.
To access the webgui and/or apex:
Go go http://localhost:8080