Thursday, July 21, 2016

RDBMS/Linux -- Installing Oracle 11gR2 on CentOS 6

Altough we say CentOS is not certified with Oracle at all, sometimes customers insist on using CentOS as for the Operating System of their Oracle Database Server.

For Oracle RDBMS, here is the supported list of Linux Distributions:  Oracle RDBMS ile certified olan OS lerden; SLES, Asianux, Redhat and Oracle Linux .
Note that; CentOS, on the other hand can be considered as Redhat  (from Oracle perspective)

Inspite of this lack of certification, I m here to say that, Oracle Database can be installed and used with CentOS. We tested and saw it .

Here is the installation work that we did for installing an Oracle11gR2 on Centos 6 64 bit Operating System.

1. Download repository
cd /etc/yum.repos.d

2. Install Pre-Install Database rpm
yum install --nogpgcheck oracle-rdbms-server-11gR2-preinstall

3. Configure the files below
# oracle-rdbms-server-11gR2-preinstall : Add NOZEROCONF=yes

/etc/hosts       localhost localhost.localdomain ermanserver


4. Create Oracle Home folders
mkdir -p /erm/app/oracle/product/11.2.0/dbhome_1
chown -R oracle:oinstall /erm/
chmod -R 775 /erm/

5. Download Oracle Software

6. Unzip Software
7. Set environments in the .bash_profile

[oracle@ermanserver ~]$ cat .bash_profile
export PATH
export ORACLE_BASE=/erm/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;

8. Install Software
cd database

9.    Follow the screens

10.    Run netca to setup the listener

     11.       Listener is created so It should be started automatically. (you can start it with “ lsnrctl start LISTENER_NAME”)
     12.       Create database by following the screens shown below; (this is a standard thing..)
Actually all the things are standard , we are installing Oracle Database on CentOS, like we do it on an Oracle Linux..

      Well, that is it, no ORA-600 or 7445. Our database is ready to be used.
      At the end of this post, I want to mention one thing; that is giving this kind of standard installation procedure is actually not my style, but in this post, I did this to show that Oracle Database (at least 11G) can be installed to CentOS Operating System without problems.
      Hope this will help.

No comments :

Post a Comment