Install Oracle 5.5 On CentOS 11.2

Source: Internet
Author: User

1. Install CentOS 5.5 i386. All are installed by default. Disable SELinux and firewall.

2. Check the rpm package

# Rpm-qa -- queryformat "% {NAME}-% {VERSION}-% {RELEASE} (% {ARCH}) \ n" | \

Egrep "binutils | compat-libstdc ++ | elfutils-libelf | gcc | glibc | kernel-headers | ksh | libaio | libgcc | libgomp | libstdc | make | sysstat | unixODBC | pdksh" | sort

Install the rpm package and add a CentOS55 DVD to the disc.

Run the following command (Note: if more than these packages are missing, install them separately. For the required packages, refer to the Oracle Standard installation documentation)

Mount-r-t iso9660/dev/cdrom/media

Cd/media/CentOS

Rpm-ivh compat-libstdc ++-33-3.2.3-61.i386.rpm

Rpm-ivh elfutils-libelf-devel-0.137-3.el5.i386.rpm elfutils-libelf-devel-static-0.137-3.el5.i386.rpm

Rpm-ivh libstdc ++ devel-4.1.2-48.el5.i386.rpm

Rpm-ivh kernel-headers-2.6.18-194.el5.i386.rpm

Rpm-ivh glibc-headers-2.5-49.i386.rpm

Rpm-ivh glibc-devel-2.5-49.i386.rpm

Rpm-ivh libgomp-4.4.0-6.el5.i386.rpm

Rpm-ivh glibc-devel-2.5-49.i386.rpm

Rpm-ivh gcc-4.1.2-48.el5.i386.rpm

Rpm-ivh gcc-c ++-4.1.2-48. el5.i386. rpm

Rpm-ivh libaio-devel-0.3.106-5.i386.rpm

Rpm-ivh sysstat-7.0.2-3.el5.i386.rpm

Rpm-ivh unixODBC-2.2.11-7.1.i386.rpm

Rpm-ivh unixODBC-devel-2.2.11-7.1.i386.rpm

Rpm-ivh pdksh-5.2.14-36.el5.i386.rpm

3. Modify/etc/inittab (optional)

Gedit/etc/inittab or nano/etc/inittab

Find

# Default runlevel. The runlevels used by RHS are:

#0-halt (Do NOT set initdefault to this)

#1-Single user mode

#2-Multiuser, without NFS (The same as 3, if you do not have networking)

#3-Full multiuser mode

#4-unused

#5-X11

#6-reboot (Do NOT set initdefault to this)

#

Id: 5: initdefault:

Change 5 to 3, that is:

Id: 3: initdefault:

4. Add groups and users

Groupadd oinstall

Groupadd dba

Useradd-g oinstall-G dba-d/u01/oracle

Chown-R oracle: oinstall u01

Passwd oracle

Check whether nobody exists. id nobody

It exists by default. If it does not exist #/usr/sbin/useradd-g nobody

5. Adjust Kernel Parameters

Nano/etc/sysctl. conf

Add at the bottom:

# By flexitime: install oracle 11g

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

-----------------

Shmmax has a minimum value of 0.5 GB, but the recommended value for Oracle is shmmax to 2.0 GB (2147483648), which improves performance.

6. Set Shell restrictions for oracle users (all are added at the bottom of the file)

Nano/etc/security/limits. conf

# By flexitime: install oracle 11g

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle soft stack 10240

Nano/etc/pam. d/login

# By flexitime: install oracle 11g

Session required pam_limits.so

Nano/etc/profile

# By flexitime: install oracle 11g

If [$ USER = "oracle"]; then

If [$ SHELL = "/bin/ksh"]; then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

Nano/etc/csh. login

# By flexitime: install oracle 11g

If ($ USER = "oracle") then

Limit maxproc 16384

Limit deors 65536

Endif

Disable the working mode of SELINUX (it is best to restart the operating system after this item is modified)

Nano/etc/selinux/config

# By flexitime: install oracle 11g

SELINUX = disabled

Nano/etc/RedHat-release

Change CentOS release 5 (Final)

Red Hat Enterprise Linux AS release 5 (Taroon)

(Because oracle has not released CentOS version of oracle)

Su-oracle

Cd ~

Nano. bash_profile

# By flexitime: install oracle 11g

ORACLE_BASE =/u01

ORACLE_HOME = $ ORACLE_BASE/oracle

ORACLE_SID = orcl

PATH = $ ORACLE_HOME/bin: $ PATH: $ HOME/bin

Export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH

7. Modify the permission of the installation directory

Mv database/u01/

Cd/u01

Chown-R oracle: oinstall database/

8. Use the oracle account to log on to the graphical interface for Installation

Terminal

Cd/u01/database

./RunInstaller

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.