Oracle Enterprise Linux 7 installation ORACLE11GR2

Source: Internet
Author: User

First, modify the hostname and IP address:
[Email protected] vh-share]# cat/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.1.205 rusky-oel.com Rusky-oel

[Email protected] vh-share]# Cat/etc/hostname
Rusky-oel.com

[Email protected] vh-share]# vi/etc/sysconfig/network-scripts/ifcfg-eno16777736
Type=ethernet
Bootproto=static
Defroute=yes
Ipv4_failure_fatal=no
Ipv6init=yes
Ipv6_autoconf=yes
Ipv6_defroute=yes
Ipv6_failure_fatal=no
Name=eth0
Uuid=7ca2767c-872e-4e2b-aac4-40e075b64f31
Onboot=yes
hwaddr=00:0c:29:ae:db:8a
ipaddr0=192.168.1.205
Prefix0=24
gateway0=192.168.1.1
dns1=222.172.200.68
Ipv6_peerdns=yes
Ipv6_peerroutes=yes

Ii. Modification of SELINUX,FIREWALL,SSH
if the OS is to being used for a Oracle installation, it is easier If Secure Linux (SELinux) was disabled or switched to

Permissive. To does this edit the "/etc/selinux/config" file, making sure the SELinux flag is set as follows.

Selinux=permissive or: selinux=disabled
If SELinux is configured after installation, the server would need a reboot for the change to take effect.

Firewall
if the OS is to be used for a Oracle installation, it's easier If the firewall is disabled. This can is done by issuing

The following commands from a terminal window as the "root" user.

# Systemctl Stop Firewalld
# systemctl Disable FIREWALLD

Ssh
Make sure the SSH daemon is started using the following commands.
# Systemctl Start Sshd.service
# Systemctl Enable Sshd.service

Third, modify kernel parameters
Set Kernel Parameters

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

FS.AIO-MAX-NR = 1048576
Fs.file-max = 6815744
Kernel.shmall = 2097152
Kernel.shmmax = 536870912
Kernel.shmmni = 4096
# SEMAPHORES:SEMMSL, Semmns, SEMOPM, Semmni
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.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 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 4096
Oracle Hard Nofile 65536
Oracle 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


IV. Installation Environment Inspection and setup
Setup
1. Check if the required package is installed
The following packages is listed as required, including the 32-bit version of some of the packages. Many of the packages

should be installed already.

Yum Install Binutils-y
Yum Install Compat-libstdc++-33-y
Yum Install Compat-libstdc++-33.i686-y
Yum Install Gcc-y
Yum Install gcc-c++-y
Yum Install Glibc-y
Yum Install Glibc.i686-y
Yum Install Glibc-devel-y
Yum Install Glibc-devel.i686-y
Yum Install Ksh-y
Yum Install Libgcc-y
Yum Install Libgcc.i686-y
Yum Install libstdc++-y
Yum Install Libstdc++.i686-y
Yum Install Libstdc++-devel-y
Yum Install Libstdc++-devel.i686-y
Yum Install Libaio-y
Yum Install Libaio.i686-y
Yum Install Libaio-devel-y
Yum Install Libaio-devel.i686-y
Yum Install Libxext-y
Yum Install Libxext.i686-y
Yum Install Libxtst-y
Yum Install Libxtst.i686-y
Yum Install Libx11-y
Yum Install Libx11.i686-y
Yum Install Libxau-y
Yum Install Libxau.i686-y
Yum Install Libxcb-y
Yum Install Libxcb.i686-y
Yum Install Libxi-y
Yum Install Libxi.i686-y
Yum Install Make-y
Yum Install Sysstat-y
Yum Install Unixodbc-y
Yum Install Unixodbc-devel-y
Yum Install Zlib-devel-y
Yum Install Elfutils-libelf-devel-y
Create the new groups and users.

2. Create users and Groups
Groupadd-g 54321 Oinstall
Groupadd-g 54322 dba
Groupadd-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 asmadmin

USERADD-G oinstall-g Dba,oper Oracle
passwd Oracle
Note. We is not a going to use the extra groups, but include them if you do plan on using them.

3. Create the installation directory
Create the directories in which the Oracle software would be installed.

Mkdir-p/u01/app/oracle/product/11.2.0.4/db_1
Chown-r oracle:oinstall/u01
Chmod-r 775/u01
If you are using X Emulation, login as root and issue the following command.

Xhost +<machine-name>

4. Modification of Oracle User environment variables
Login as the Oracle user and add the following lines at the end of the "/home/oracle/.bash_profile" file.
Add the following to this file as an Oracle user login:/home/oracle/.bash_profile
# Oracle Settings
tmp=/tmp; Export TMP
Tmpdir= $TMP; Export TMPDIR

oracle_hostname=rusky-oel.com; Export Oracle_hostname
oracle_unqname=db11g; Export Oracle_unqname
Oracle_base=/u01/app/oracle; Export Oracle_base
Oracle_home= $ORACLE _base/product/11.2.0.4/db_1; Export Oracle_home
ORACLE_SID=ORCL; Export Oracle_sid
Oracle_term=xterm; Export Oracle_term
Path=/usr/sbin: $PATH; Export PATH
Path= $ORACLE _home/bin: $PATH; Export PATH

Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib; Export Ld_library_path
Classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib; Export CLASSPATH

if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi


V. Implementation of the installation
Installation

Log into the Oracle user. If you is 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

"Parameter document: http://oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-oracle-linux-7.php"

Oracle Enterprise Linux 7 installation ORACLE11GR2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.