Install and modify the Oracle 11g software and hardware environment in Linux

Source: Internet
Author: User

Linux:

1. Memory: physical memory must be higher than 1 GB

Check memory size: grep MemTotal/proc/meminfo

2. swap space: generally twice the memory size. For example, you can set the swap partition size to 3 GB for 1 GB memory.

1) Check the swap space size: grep SwapTotal/proc/meminfo

2) Add swap partitions

Create a partition file such as/home/swap. The file size is 5120000 blocks. Generally, 1 block is 1 K, so the space here is 5 GB.

Dd if =/dev/zero of =/home/swap bs = 1024 count = 5120000

Then convert the partition into a swap partition.

Mkswap/home/swap

Then add it to fstab.

Echo "/home/swap defaults 0 0">/etc/fstab

3. Hard Disk: 5 Gb or above

Check hard disk space: df-h

Requirements for software for installing the Oracle 11G system in Linux:

1. Check the software requirements and install the software without yum install.

Rpm-q binutils compat-libstdc ++-33 elfutils-libelf-devel glibc-common glibc-devel gcc-c ++ libaio-devel libaliblibgcc libstdc + + libstdc ++-devel make sysstat unixODBC-devel pdksh

(If there is no installation, put the Linux CD into the Server folder, find the corresponding RPM package, and run the RPM command for installation. If you like the GUI, you can also double-click the corresponding RPM package on the image interface to install the package. Note that when the libaio-devel unixODBC-devel software package is installed, in addition to the X64 package, the i386 package should also be installed, not because it is an X64 system, I will not install the i386 package. )

Note: During the installation of elfutils-libelf-devel, because of the dependency, two installation methods are required simultaneously.

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

System File Configuration:

1. edit/etc/sysctl. conf and add the following lines:

# Kernel paramaters required by Oracle 11gR2
Fs. file-max = 6815744
Fs. aio-max-nr = 1048576
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 9000 65500
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048576

Kernel. shmmax = 68719476736

Kernel. shmall = 4294967296

Where

Kernel. shmmax and kernel. shmall are existing in the original file and can be left empty

2. edit/etc/security/limits. conf and add the following lines:

Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536

3. edit/etc/pam. d/login and add the following lines:

Session required/lib64/security/pam_limits.so
Session required pam_limits.so

[Note: For X64 systems, use/lib64/security/pam_limits.so. Otherwise, the system may not be able to log on to the server !]

4. edit/etc/profile and add the following lines:

If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi

Installation Process reference:

Recommended reading:

How to install Oracle 11g on Linux

Detailed description of the installation process of Oracle 11g Database in Linux

How to install Oracle 11g R2 single-instance database on CentOS 5.6

To install Oracle Clusterware on an Oracle vmvm

Install Oracle 11 GB single-instance database on Linux under vmvm

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.