Oracle Database 11g Release 2 Installation on RHEL/CentOS 6.x/5.x/4.x

As we all know Oracle database is the most popular and widely used Relational Database Management System (RDBMS) in the world. This post describes step by step installation of Oracle Database 11g Release 2 32bit on CentOS 6.4 32bit. The installation steps should not be vary on most of the Red Hat based Linux distributions.

Installing Oracle Database 11g Release 2

Step 1: Install Oracle Dependencies

We use “oracle-rdbms-server-11gR2-preinstall” package offered by “Oracle Public Yum” repository. The Oracle public yum repository provides a free and easiest way to install all the latest Oracle Linux dependencies automatically. To setup yum repository, follow the instructions provided below.

Login as Oracle user and open file “.bash_profile“, which is available on oracle user’s home directory, make an entries as described below. Make sure you set correct hostname to “ORACLE_HOSTNAME=oracle.tecmint.com“.

Step 4: Downloading Oracle Software

The Oracle package contains 2 zip files which you must first accept the license agreement before downloading. I’ve given the files names for you reference, please download these files for your system architecture somewhere under “/home/oracle/“.

Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.

Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_2
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

19. The installation of Oracle Database is successful.

Oracle Installation Finish

20. To test your Oracle installation navigate to web based management interface for your system at “localhost” with the user name “SYS” connecting as “SYSDBA” and using the password you set during the install of Oracle. Remember to open port 1158 on your firewall and restart the iptables service.

This is end of the Oracle Database Software Installation. In our upcoming article we will be covering how to create database using DBCA and how to Start-up and Shutdown Oracle Database. Please stay tuned…!!!

./runInstaller -silent -force -responsefile /home/oracle/database/response/db_install.rsp
INFO: Setting variable ‘ROOTSH_LOCATION’ to ‘/u01/app/oracle/product/11.2.0.4/db_1/root.sh’. Received the value from a code block.
INFO: Setting variable ‘ROOTSH_LOCATION’ to ‘/u01/app/oracle/product/11.2.0.4/db_1/root.sh’. Received the value from a code block.
INFO: InstallProgressMonitor: Starting phase 2
INFO: Installation in progress
INFO: Installation in progress
INFO: Extracting files to ‘/u01/app/oracle/product/11.2.0.4/db_1’.
INFO: Extracting files to ‘/u01/app/oracle/product/11.2.0.4/db_1’.
INFO: Performing fastcopy operations based on the information in the file ‘oracle.server_EE_exp_1.xml’.
INFO: Performing fastcopy operations based on the information in the file ‘racfiles.jar’.
INFO: Performing fastcopy operations based on the information in the file ‘oracle.server_EE_dirs.lst’.
INFO: Performing fastcopy operations based on the information in the file ‘oracle.server_EE_filemap.jar’.
INFO: Performing fastcopy operations based on the information in the file ‘oracle.server_EE_1.xml’.
INFO: Performing fastcopy operations based on the information in the file ‘setperms1.sh’.
INFO: Number of threads for fast copy :1
INFO: invalid distance code
SEVERE: oracle.sysman.oii.oiif.oiifb.OiifbEndIterateException: invalid distance code
at oracle.sysman.oii.oiic.OiicInstallAPISession.doOperation(OiicInstallAPISession.java:490)
at oracle.sysman.oii.oiic.OiicAPIInstaller.doOperation(OiicAPIInstaller.java:1010)
at oracle.sysman.oii.oiic.OiicAPIInstaller.doOperation(OiicAPIInstaller.java:971)
at oracle.install.driver.oui.OUISetupDriver.setup(OUISetupDriver.java:459)
at oracle.install.driver.oui.SetupJob.call(SetupJob.java:178)
at oracle.install.driver.oui.SetupJob.call(SetupJob.java:52)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:662)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:688)
at java.lang.Thread.run(Thread.java:637)

I am new to Oracle and I am on the way of installing Oracle Database 12C. I would like just like to know if the files that I have download [linuxamd64_12c_database_1of2.zip and linuxamd64_12c_database_2of2.zip ] can be also installed in the Linux Server RHEL 6.7 just all using all the terminal? Because what I saw in the internet is that they do it in the terminal and then after some configurations, there will be a GUI for to continue the installation.. With my case, I am just connecting to server located remotely using ssh..