Install Oracle 10g notes on RedHat Enterprise 5.8

Source: Internet
Author: User

Note:

Que1: Generally, When configuring kernel parameters (gedit/etc/sysctl. conf), we only need to modify kernel. shmmax.

1 is half of the physical memory:

Physical memory grep MemTotal/proc/meminfo

The Unit is byte. (B)

3 It is recommended that the RedHat should not exceed 4 GB

4. The shmmax Kernel Parameter defines the maximum value of a single shared memory segment. If this parameter is set to a smaller value than the Oracle SGA setting, SGA will be allocated with multiple shared memory segments, leading to performance degradation. To avoid multiple shared memory segments, we can modify the shmmax kernel parameters so that SGA exists in one shared memory segment.

Que2: Only one warning (swap) is allowed during prerequisite checks, and network configurations can be ignored. Otherwise, the following problems may be very confusing.

Que3: the basic package needs to be installed first, and then which package is missing to be forcibly installed on the iso image installation disk or the server or packages folder in the cd. And the OS version should not be too new.

Command for forcibly installing rpm package: rpm-ivh -- nodeps name

Que4: su-root gedit/etc/hosts related to the network configuration check (the OS is static as follows)

Format:

"Local IP host name host alias"

Note: The "127.0.0.1 host name host alias" check in the first line of redhat Enterprise 5 is not acceptable.

General steps:

1. Pick packages:

Setarch-2 * make-3 * glibc-2 * libaio-0 * compat-libstdc ++-33-3 *

Compat-gcc-34-3 * compat-gcc-34-c + +-3 * gcc-4 * libXp-1 *

Openmotif-2 * compat-db-4 *

2. Modify the OS version:

Gedit/etc/redhat-release

Redhat-4

# Red Hat Enterprise Linux Server release 5.4 (Tikanga)

Since oracle only supports RHEL4, You need to modify the version description. Comment out the Red Hat Enterprise Linux Server release 5.4 (Tikanga) line, followed by a line of redhat-4. Of course, you must modify it after installing oracle. The redhat-4 must be the first line of the redhat-release file, otherwise a warning is reported during installation.

3. Modify kernel parameters:

Gedit/etc/sysctl. conf

Add to the bottom of the file:

Kernel. shmall = 2097152

Kernel. shmmax = ****** (depending on the size of your physical memory)

Kernel. shmmni = 4096

# Semaphores: semmsl, semmns, semopm, semmni

Kernel. sem = 250 32000 100 128

Fs. file-max = 65536

Net. ipv4.ip _ local_port_range = 1024 65000

Net. core. rmem_default = 262144

Net. core. rmem_max = 262144

Net. core. wmem_default = 262144

Net. core. wmem_max = 262144

4. Create users, groups, and directories required for Oracle Installation

(1) Add groups and users:

Groupadd oinstall

Groupadd dba

 

Useradd-g oinstall-G dba oracle

Passwd oracle

(2) create an Oracle installation directory and grant permissions to oracle users:

Mkdir-p/u01/app/oracle/product/10.2.0/db_1

Chown-R oracle. oinstall/u01

5. Set shell limit for oracle users

# Vi/etc/security/limits. conf

Add the following content to the/etc/security/limits. conf file:

* Soft nproc 2047

* Hard nproc 16384

* Soft nofile 1024

* Hard nofile 65536

Add the following content to the file/etc/pam. d/login to make the shell limit take effect:

Session required/lib/security/pam_limits.so

  • 1
  • 2
  • Next Page

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.