Some prerequisite checks before installing Oracle

1. Operating system version

[root@localhost etc]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Kernel \r on an \m

 

2. The kernel version, if it does not meet the requirements, it needs to be upgraded

[root@localhost etc]# uname -r
2.6.18-308.el5

 

or command cat /proc/version

 

3, the required package, check the documentation

# rpm -q package_name

The missing packages can be found from the operating system ISO image file.

 

4. Apply necessary operating system patches

Oracle's OS-specific guides can be viewed

 

5. Check physical operating system requirements

At least 1G of physical memory

1G swap space, or if your memory is between 256M and 512M, the swap will be twice as large as the physical memory.

Oracle provides a matrix that shows the amount of swap space for varying RAM sizes

The /tmp directory must have at least 400M of free space

5.1 Check the memory size

[root@localhost etc]# grep MemTotal /proc/meminfo
MemTotal:      2054408 kB

5.2 Check the swap space size

[root@localhost etc]# grep SwapTotal /proc/meminfo
SwapTotal:     4095992 kB

5.3 Check available disk space

[root@localhost etc]# df -h
file system capacity used free used % mount point
/dev/mapper/VolGroup00-LogVol00
                       74G 12G 59G 17% /
/dev/sda1 99M 13M 81M 14% /boot
tmpfs 1004M 0 1004M 0% /dev/shm

5.4 Check the space of the /tmp directory

[root@localhost etc]# df -k /tmp
file system 1K-block used free used % mount point
/dev/mapper/VolGroup00-LogVol00
                      77163464 11889712 61290804 17% /

 

6. Create a mount point for the installation operation

Following the OFA compliant recommendation, it is recommended to have 4 mount points. One is for Oracle software and the other three are for various database files.

 

 7、Reconfiguring the Kernel

Check out the current configuration:

cat /etc/sysctl.conf

Revise

vi /etc/sysctl.conf

It must be restarted, but if it is a Red Hat system, it can also be restarted without restarting the command sysctl -p

After modification, you can use the following command to view:

/sbin/sysctl -a | grep shm
/sbin/sysctl -a | grep sem
/sbin/sysctl -a | grep file-max
/sbin/sysctl -a | grep ip_local_port_range

 

In addition to modifying kernel parameters, system administrators must also check user process restrictions, as well as user-specific login shell scripts.

 

Modify Shell Restrictions

Oracle recommends changing the limits on the number of processes each Linux account may use and the number of open files

vi /etc/security/limits.conf

Add the following content, of course, these are for reference to the official documentation

 

oracle        soft    nproc   2047
oracle        hard    nproc   16384
oracle        soft    nofile  1024
oracle        hard    nofile  65536

 

You also need to modify the /etc/pam.d/login file and add the following paragraph:

session    required     /lib/security/pam_limits.so

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326110356&siteId=291194637