Oracle Database 11g Release 2 (11.2) Installation On Oracle Linux 7 (OL7) (2024)

8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | 23ai | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Articles » 11g » Here

Oracle Linux 7 is a production release, but the Oracle Database is only supported on it from Oracle Database 11g (11.2.0.4) onward. This installation should not be used for a real system when using database versions prior to 11.2.0.4.

This article describes the installation of Oracle Database 11g Release 2 (11.2.0.4) 64-bit on Oracle Linux 7 (OL7) 64-bit. The article is based on a server installation with a minimum of 2G swap and secure Linux set to permissive. An example of this type of Linux installation can be seen here.

  • Download Software
  • Unpack Files
  • Hosts File
  • Oracle Installation Prerequisites
    • Automatic Setup
    • Manual Setup
    • Additional Setup
  • Installation
  • Post Installation

Download Software

Download the Oracle software using one of the two link below. If you have access to My Oracle Support (MOS), then it is better to download the 11.2.0.4 version, since this is the first release of 11.2 that is supported on Oracle Linux 7.

Unpack Files

Unzip the files.

unzip linux.x64_11gR2_database_1of2.zipunzip linux.x64_11gR2_database_2of2.zip

You should now have a single directory called "database" containing installation files.

Hosts File

The "/etc/hosts" file must contain a fully qualified name for the server.

<IP-address> <fully-qualified-machine-name> <machine-name>

For example.

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4192.168.0.215 ol7.localdomain ol7

Set the correct hostname in the "/etc/hostname" file.

ol7.localdomain

Oracle Installation Prerequisites

Perform either the Automatic Setup or the Manual Setup to complete the basic prerequisites. The Additional Setup is required for all installations.

Automatic Setup

If you plan to use the "oracle-rdbms-server-11gR2-preinstall" package to perform all your prerequisite setup, follow the instructions at http://public-yum.oracle.com to setup the yum repository for OL, then perform the following command.

# yum install oracle-rdbms-server-11gR2-preinstall

All necessary prerequisites will be performed automatically.

It is probably worth doing a full update as well, but this is not strictly speaking necessary.

# yum update

Manual Setup

If you have not used the "oracle-rdbms-server-11gR2-preinstall" package to perform all prerequisites, you will need to manually perform the following setup tasks.

Add or amend the following lines in the "/etc/sysctl.conf" file.

fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048586

Run the following command to change the current kernel parameters.

/sbin/sysctl -p

Add the following lines to the "/etc/security/limits.conf" file.

oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 4096oracle hard nofile 65536oracle soft stack 10240

Add the following line to the "/etc/pam.d/login" file, if it does not already exist.

session required pam_limits.so

The following packages are listed as required, including the 32-bit version of some of the packages. Many of the packages should be installed already.

yum install binutils -yyum install compat-libstdc++-33 -yyum install compat-libstdc++-33.i686 -yyum install gcc -yyum install gcc-c++ -yyum install glibc -yyum install glibc.i686 -yyum install glibc-devel -yyum install glibc-devel.i686 -yyum install ksh -yyum install libgcc -yyum install libgcc.i686 -yyum install libstdc++ -yyum install libstdc++.i686 -yyum install libstdc++-devel -yyum install libstdc++-devel.i686 -yyum install libaio -yyum install libaio.i686 -yyum install libaio-devel -yyum install libaio-devel.i686 -yyum install libXext -yyum install libXext.i686 -yyum install libXtst -yyum install libXtst.i686 -yyum install libX11 -yyum install libX11.i686 -yyum install libXau -yyum install libXau.i686 -yyum install libxcb -yyum install libxcb.i686 -yyum install libXi -yyum install libXi.i686 -yyum install make -yyum install sysstat -yyum install unixODBC -yyum install unixODBC-devel -yyum install zlib-devel -yyum install elfutils-libelf-devel -y

Create the new groups and users.

groupadd -g 54321 oinstallgroupadd -g 54322 dbagroupadd -g 54323 oper#groupadd -g 54324 backupdba#groupadd -g 54325 dgdba#groupadd -g 54326 kmdba#groupadd -g 54327 asmdba#groupadd -g 54328 asmoper#groupadd -g 54329 asmadminuseradd -g oinstall -G dba,oper oracle

We are not going to use the extra groups, but include them if you do plan on using them.

Additional Setup

The following steps must be performed, whether you did the manual or automatic setup.

Set the password for the "oracle" user.

passwd oracle

Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.

SELINUX=permissive

Once the change is complete, restart the server or run the following command.

# setenforce Permissive

If you have the Linux firewall enabled, you will need to disable or configure it, as shown here or here. To disable it, do the following.

# systemctl stop firewalld# systemctl disable firewalld

Create the directories in which the Oracle software will be installed.

mkdir -p /u01/app/oracle/product/11.2.0.4/db_1chown -R oracle:oinstall /u01chmod -R 775 /u01

Unless you are working from the console, or using SSH tunnelling, login as root and issue the following command.

xhost +<machine-name>

Add the following lines at the end of the "/home/oracle/.bash_profile" file.

# Oracle SettingsTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_HOSTNAME=ol7.localdomain; export ORACLE_HOSTNAMEORACLE_UNQNAME=DB11G; export ORACLE_UNQNAMEORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/11.2.0.4/db_1; export ORACLE_HOMEORACLE_SID=DB11G; export ORACLE_SIDORACLE_TERM=xterm; export ORACLE_TERMPATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

Installation

Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.

DISPLAY=<machine-name>:0.0; export DISPLAY

Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.

./runInstaller

Proceed with the installation of your choice. You can see type of installation I performed by clicking on the links below to see screen shots of each stage. The "pdksh" package will be listed as missing, which can be ignored because we installed the "ksh" package instead.

If you are doing an installation for an Enterprise Manager repository, remember to do an advanced installation and pick the ALT32UTF8 character set.

  1. Configure Security Updates
  2. Select Install Option
  3. System Class
  4. Node Selection
  5. Select Install Type
  6. Typical Install Configuration
  7. Create Inventory
  8. Perform Prerequisite Checks
  9. Summary
  10. Install Product
  11. Database Configuration Assistant
  12. Database Configuration Assistant 2
  13. Execute Configuration Scripts
  14. Finish

During the link phase you will encounter an error invoking the "ins_emagent.mk" file. To fix this, edit the "$ORACLE_HOME/sysman/lib/ins_emagent.mk", doing a search and replace for the line shown below.

FROM:$(MK_EMAGENT_NMECTL)TO :$(MK_EMAGENT_NMECTL) -lnnz11

Click the "Retry" button.

Post Installation

Edit the "/etc/oratab" file setting the restart flag for each instance to 'Y'.

DB11G:/u01/app/oracle/product/11.2.0.4/db_1:Y

For more information see:

Hope this helps. Regards Tim...

Back to the Top.

Oracle Database 11g Release 2 (11.2) Installation On Oracle Linux 7 (OL7) (2024)

FAQs

Is Oracle 11g supported on Oracle Linux 7? ›

Oracle Linux 7 is a production release, but the Oracle Database is only supported on it from Oracle Database 11g (11.2. 0.4) onward. This installation should not be used for a real system when using database versions prior to 11.2.

What Linux version is compatible with Oracle 11g? ›

Linux requirements

Required operating system version for 11g: Oracle Linux 5 Update 2 (with Red Hat Compatible Kernel) Red Hat Enterprise Linux 5 Update 2. Red Hat Enterprise Linux 6.

How to install Oracle Database 11g Release 2? ›

3.1 Install Oracle Database 11g Release 2 (11.2. 0.2) Patch Set 1
  1. Insert the Oracle Clinical and Oracle Thesaurus Management System 4.6. ...
  2. Locate the Oracle Database 11g Release 2 (11.2. ...
  3. Follow the included instructions for installing Oracle Database 11g Release 2 (11.2. ...
  4. Choose to install the Enterprise Edition option.

How to install Oracle 11g on CentOS 7 step by step? ›

Steps involved:
  1. First you should have CentOS Linux 7 installed and have the authentication of user root; this installation performed in a x86-64 based system.
  2. Connect to the CentOS Linux 7 by SSH as user root.
  3. Create a user named oracle under which the Oracle Software will be installed. ...
  4. Create required user groups .
Dec 16, 2018

How to install Oracle 11g client on Linux step by step? ›

Install the Oracle 11g Client
  1. Download and unzip Oracle 11g Client ODT-ODAC (11.2. ...
  2. Launch the Setup.exe file. ( ...
  3. Click Next to continue.
  4. Select the option to install Oracle Data Access Components for Oracle Client. ...
  5. Retain the default paths if they appear as shown here with references to 11g.

How to start Oracle Database 11g in Linux? ›

Answer: To start the Oracle 11g database after installation, open the command prompt and type the command “sqlplus / as sysdba” to connect to the system as a sysdba user. Then, enter the command “startup” to start the database.

What operating system is supported by Oracle 11g? ›

Oracle Support Matrix
Oracle VersionSupported OS
Oracle 10g r2Windows Server 2003 (IA64) Windows Server 2003 R2 (IA64)
Oracle 11g R1Windows Server 2003 (x86) Windows Server 2003 R2 (x86) Windows Server 2008 (x86)
Oracle 11g R1Windows Server 2003 (x64) Windows Server 2003 R2 (x64) Windows Server 2008 (x64)
8 more rows

Can we install Oracle 11g and 19c on same machine? ›

Oracle Database supports multiple Oracle homes. You can install this release or earlier releases of the software more than once on the same system, in different Oracle home directories.

Is Oracle 11g still supported? ›

Oracle Premier Support for 11.2. 0.4 (11G) came to an end back in 2015, with Extended Support due to expire 31st December 2020.

When was Oracle 11g release 2? ›

Oracle Database
ReleaseReleased
11g Release 2 ( LTR )14 years ago (01 Sep 2009)
11g Release 1 ( LTR )16 years ago (09 Aug 2007)
10g Release 2 ( LTR )18 years ago (11 Jul 2005)
10g Release 1 ( LTR )20 years ago (08 Sep 2003)
9 more rows
Apr 2, 2024

How to install Oracle Database in Linux? ›

Installing and Configuring the Oracle Database on Linux
  1. Connect to the server by using SSH or VNC, as appropriate.
  2. Unzip your database installer.
  3. In your shell, run the ulimit -s 10240 command . ...
  4. Validate that /etc/pam.d/login contains the following line: ...
  5. Validate that /etc/pam.d/system-auth contains the following line:

How to install Oracle 11g on Ubuntu? ›

How to Install Oracle 11g on Ubuntu Linux: Complete Guide
  1. Preparing Ubuntu Linux.
  2. Configuring a Swap File.
  3. Configuring Network Settings.
  4. Configuring the environment for Oracle.
  5. Preparing the Oracle Installer.
  6. Installing Oracle.
  7. Check that Oracle is running on Ubuntu.
  8. Oracle post-installation configuration.
Jun 1, 2023

How to upgrade Oracle Database 11g to 19c on Linux step by step? ›

Below is an overview of the upgrade process using DBUA.
  1. 1 | Backup Your Database. ...
  2. 2 | Empty Recycle Bin & Gather Stats. ...
  3. 3 | Run Oracle's Database Pre-Upgrade Utility. ...
  4. 4 | Install the Oracle 19c Database Software. ...
  5. 5 | Run the DBUA Utility. ...
  6. 6 | Run Post-Upgrade Script & Restart Database.

How to check Oracle version in CentOS 7? ›

Let's take a look at how to check the Oracle version. One way is with a SQL query. By running the 'SELECT * FROM V$VERSION' command, you can see the Oracle release number, patch set level and more.

How to uninstall Oracle 11g on CentOS 7? ›

To manually remove Oracle Database 11g:
  1. Log in to Linux as root.
  2. Stop the Oracle service. ...
  3. Stop the listener. ...
  4. Delete the Oracle installation directory /u01 in the root directory. ...
  5. Delete the directory /usr/local/bin/oracle (the default is /usr/local/bin). ...
  6. Delete files oratab and oraInst. ...
  7. Delete the oracle user.

Is Oracle 11g supported on Oracle Linux 8? ›

x version). Oracle Grid Infrastructure 11g Release 2 (11.2. 0.4) is not supported on Oracle Linux 8.2 and Red Hat Enterprise Linux 8.2. To install Oracle Real Applications Clusters (Oracle RAC) 11g Release 2 (11.2.

What are the requirements for Oracle Linux 7? ›

1 System Requirements and Limits

You can install Oracle Linux 7 on x86-64 systems with up to 2048 logical CPUs and 64 TB of memory. The theoretical upper limit is 5120 logical CPUs and 64 TB of memory, but Oracle has not tested this configuration.

What is the latest version of Oracle Linux 7? ›

Oracle Linux
ReleaseReleasedLatest
91 year and 11 months ago (06 Jul 2022)9.4 (15 May 2024)
84 years and 10 months ago (19 Jul 2019)8.10 (28 May 2024)
79 years ago (23 Jul 2014)7.9 (08 Oct 2020)
613 years ago (12 Feb 2011)6.10 (02 Jul 2018)
May 30, 2024

Top Articles
Latest Posts
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 6556

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.