How to install OracleDB on CentOS, and how to run PL/SQL script on server?

February 15, 2015 1.8k views

I have a project for students who want to learn PL/SQL,and I want to make some site which will work like "codecademy" which takes some PL/SQL code,compiles it and checks if the answer is right or wrong. Now I have installed CentOS 6.5 and I want to install OracleDB for running PL/SQL scripts on it, could you please help me with it?

1 Answer

Officially OracleDB is only supported on Oracle Linux, Red Hat Enterprise Linux, and SUSE Enterprise Linux. Though Oracle Linux, like CentOS, is based on RHEL. They are so closely related that Oracle offers a script that will "turn" a CentOS 6 installation into an Oracle one.

curl -O https://linux.oracle.com/switch/centos2ol.sh 
sh centos2ol.sh

After you've run that script on a CentOS 6.5 droplet, you should be able to install OracleDB 11g with:

yum install oracle-rdbms-server-11gR2-preinstall
Have another answer? Share your knowledge.