Decided to install Oracle for fun. This time, RedHat Enterprise Linux 4 + Oracle 11g R2 is used. Some problems have been encountered during the installation process. We will summarize the issues for future use.
Before the installation, install Linux first. Due to the previous installation with/only mounted about 10 Gb of capacity, I did not expect/u01 to be used as the/capacity, therefore, it is not enough to install Oracle after installing the Linux system/only about 4 GB of capacity. In addition, my habit is to decompress the installation package to the/tmp directory, and the/tmp directory also uses the/capacity. Therefore, during this installation, I mounted/u01 to some capacity separately when installing Linux, but the size of this mount is still a little smaller and only about 5 GB of capacity is mounted, the next installation requires a capacity of around 8-10 Gb. I have read that Oracle is fully installed with a capacity of about 5.3G. Well, let's talk about things you need to pay attention to before starting installation.
Check hardware
Memory
#Grep MemTotal/proc/meminfo
Swap space
#Grep SwapTotal/proc/meminfo
Disk Space
#Df-ah
First, check the software packages to be supported:
Take my RedHatEnterprise4 as an example:
Binutils-2.15.92.0.2-18
Compat-libstdc ++-33.2.3-47.3
Elfutils-libelf-0.97-5
Elfutils-libelf-devel-0.97.5
Elfutils-libelf-devel-static-0.97.5
Glibc-2.3.9.4-2.19
Glibc-common-2.3.9.4-2.19
Glibc-devel-2.3.9.4-2.19
Glibc-headers-2.3.9.4-2.19
Gcc-3.4.5-2
Gcc-c ++-3.4.5-2
Kernel-headers-2.6.18
Ksh-20060214
Libaio-devel-0.3.105-2
Libaio-0.3.105-2
Libgcc-3.4.5
Libstdc ++-3.4.5-2
Libstdc +-devel-3.4.5-2
Make-3.80-5
Sysstat-5.0.5
UnixODBC-2.2.11
UnixODBC-devel-2.2.11
The command used is rpm-qa | grep "partial package name"
If not, you can find the corresponding package in the installation disk, and then install it with rpm-ivh *. rpm.
After The installation package is checked, The corresponding Oracle user is created. [helper home www.LinuxIDC.com] involves The oinstall (The Oracle Inventory group) user group, dba (The OSDBA group) user Group and The oracle software owner user.
Run the following command with the root user:
Groupadd oinstall
Groupadd dba
Useradd-g oinstall-G dba oracle
Passwd oracle
After adding users and user groups, modify the kernel parameters, modify the/etc/sysctl. conf file, and add the following parameters:
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
UseSysctl-pApplication configuration.
Modify user restrictions/Etc/security/limits. confFile with the following parameters:
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Modify user authentication options/Etc/pam. d/loginFile with the following parameters:
Session required pam_limits.so
Modify the user configuration file, modify the/etc/profile file, and add the following parameters:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Then, set the directory permission and owner:
Mkdir-p/u01/(Of course, this step is free, because I created this directory and mounted the capacity in the first Linux system installation, but the capacity needs to be mounted to a large point)
Chown-R oracle: oinstall/u01/
Chmod-R 775/u01/