RHEL 6.4 Installs Oracle 11.2.0.1 R2

Source: Internet
Author: User

Installation environment: RHEL 6.4 x86_64

Oracle 11.2.0.1 R2

System Requirements:

Memory: >1g

Swap space: Typically twice times memory (memory size * *)

HDD: 5G or more


Inspection order;

Memory

#grep Mentotal/proc/meminfo

Swap space

#grep Swaptotal/proc/meminfo

Hard disk space

#df-ah


Packages that are dependent on the installation

Check: Rpm-qa | GREP below Package

Binutils

Compat-libstdc++-33

Elfutils-libelf

Elfutils-libelf-devel

Elfutils-libelf-devel-static

Gcc

Gcc-c++

glibc

Glibc-common

Glibc-devel

Glibc-headers

Kernel-headers

Ksh

Libaio

Libaio-devel

libgcc

Libgomp

Libstdc++

Libstdc++-devel

Make

Sysstat

UnixODBC

Unixodbc-devel


Create Oracle Users and Groups

Create Oracle Installation group Oinstall, DB Admins group, Oracle user Oracle

#/usr/sbin/groupadd Oinstall
#/usr/sbin/groupadd DBA
#/usr/sbin/useradd-g OINSTALL-G dba Oracle (Primary group Oinstall, other group: DBA)
# passwd Oracle


modifying kernel parameters

Modify the/etc/sysctl.conf file, plus the following parameters

FS.AIO-MAX-NR = 1048576
Fs.file-max = 6815744
Kernel.shmall = 2097152
Kernel.shmmax = 536870912
Kernel.shmmni = 4096
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


Execute the following command to make the modified parameters effective (without restarting)

# sysctl-p


Modify User Limits

Modify the/etc/security/limits.conf file, plus the following parameters

Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536


Modify user authentication Options

Modify the/etc/pam.d/login file plus the following parameters

Session Required Pam_limits.so


Modify a User Configuration file

Modify the/etc/profile file to add the following parameters

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


Create the installation directory

# mkdir-p/u01/orainventory
# Chown-r ORACLE:OINSTALL/U01/
# Chmod-r 775/U01/


Modify User Bash Shell

$ VI. bash_profile

Add the following content

Export ORACLE_BASE=/U01
Export Oracle_home= $ORACLE _base/oracle
Export Oracle_sid=oraclesid
Export path= $ORACLE _home/bin: $PATH: $HOME/bin

Execute after completion

#su –oracle

#env | grep ORA See if the user Oracle environment variable is complete


Log off the root user and log in to the Oracle user

Note: This key is important, the installation with root user error, must be installed with the Oracle user


Installing Oracle 11g

Upload the installation package, unzip

# Unzip Linux.x64_11gR2_database_1of2.zip

# Unzip Linux.x64_11gR2_database_1of2.zip


#./runinstaller


This article is from the "Elimination" blog, please be sure to keep this source http://zhangxiaohua.blog.51cto.com/2321741/1577727

RHEL 6.4 Installs Oracle 11.2.0.1 R2

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.