Install Oracle11g in CentOS5

Source: Internet
Author: User
. System level preparation 1. Install the following software [root@www.linuxidc.com ~] # Yuminstallbinutilselfutils-libelfglibclibaiolibgccl

. System-level preparation 1. Install the following software [root @ www.linuxidc.com ~] # Yum install binutils elfutils-libelf glibc libaio libgcc l

. System-level preparation

1. Install the following software

[Root @ ~] # Yum install binutils unzip-libelf glibc libaio libgcc libstdc ++ make compat-libstdc ++ elfutils-libelf-devel-* glibc-headers glibc-devel libgomp gcc-c ++ libaio -devel libstdc ++-devel unixODBC-devel sysstat fonts-chinese

2. fine-tune Kernel Parameters

If you skip this step, Oracle will prompt an error during system environment monitoring.

Modify the/etc/sysctl. conf configuration file and add the following content:

Kernel. shmmni = 8192
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144

Apply the settings.

[Root @ ~] # Sysctl-p

Explanation:

Kernel. sem: indicates the system semaphore and the number of calls to the system.

Kernel. shmmax: indicates the maximum shared memory value. When the physical memory is small, it is recommended to set to 536870912. If the memory exceeds 4 GB, it is recommended to set to 4294967295. the calculation method is shared memory * 1024*1024. the shared memory is generally half of the physical memory.

Kernel. shmmmni: minimum shared memory value. Generally, it is recommended to be 4096. If the memory exceeds 4 GB, it is recommended to be set to 8096.

Kernel. shmall: indicates all memory values, that is, the physical memory value, which is generally set to 268435456.

Kernel. msgmax: indicates the maximum number of messages. Keep the default value.

Kernel. msgmnb: indicates the minimum number of messages. Keep the default value.

Fs. file-max: indicates the maximum number of opened files. We recommend that you set it to 65536.

3. Modify the quota of system resources

(1) configure the resource quota, set the resource usage of Oracle users, modify the/etc/security/limits. conf configuration file, and add the following content at the end:

* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536

(2) modify the/etc/pam. d/login configuration file and add the following content at the end to make the system resource quota settings take effect.

Session required pam_limits.so

4. Disable SElinux

[Root @ ~] # Vim/etc/sysconfig/selinux

Modify SELINUX = disabled and change the value to disabled.

[Root @ ~] # Setenforce 0 (effective immediately)

5. Set the Server IP address to static as follows:

[Root @ ~] # Cat/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE = eth0
ONBOOT = yes
BOOTPROTO = none
HWADDR = 48: 5b: 39: 0d: fa: ec
IPADDR = 192.168.1.248
NETMASK = 255.255.255.0
GATEWAY = 192.168.1.1

6. Restart the server.

[Root @ ~] # Reboot

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.