I installed it on RHEL6 32-bit. Use the gnome gui to install all the Development kits in Development Tools, or quickly install them and build a local yum source and then use the group for installation. It is worth noting that swap requires at least 3 GB of physical memory and my machine is 2 GB of physical memory.
The installation process consists of two steps: modifying system parameters and installing software and databases.
Modify system parameters
Step 1: Add the following parameters to vi/etc/sysctl. conf:
Fs. aio-max-nr = 1048576
Fs. file-max = 6815744
Kernel. shmall = 2097152
Kernel. shmmax = 1073741824
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
Save and make it take effect
/Sbin/sysctl-p
If the following error message is displayed, ignore the error because the error message is displayed even if the parameter is not modified.
Error: "net. bridge. bridge-nf-call-ip6tables" is an unknown key
Error: "net. bridge. bridge-nf-call-iptables" is an unknown key
Error: "net. bridge. bridge-nf-call-arptables" is an unknown key
Note: The value of kernel. shmmax's is half of the physical memory. My memory is 2 GB, so it is 1073741824
Step 2: vi/etc/security/limits. conf, add:
OracleSoft nproc 2047
OracleHard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Step 3: vi/etc/pam. d/login. Add the following parameters:
Session required pam_limits.so step4: vi/etc/profile:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Step 4: vi/etc/csh. login:
If ($ USER = "oracle") then
Limit maxproc 16384
Limit descriptors 65536
Umask 022
Endif
Step 5: Change vi/etc/RedHat-release to the following values. After successfully installing the database, modify it back:
Red Hat Enterprise Linux Server release 5.0 (Tikanga)
Step 6: Add related users and user groups:
/Usr/sbin/groupadd oinstall
/Usr/sbin/groupadd dba
/Usr/sbin/useradd-m-g oinstall-G dba oracle
Echo "oracle" | passwd-stdin oracle (I am too lazy, pipeline command to change the oracle password)
Step 6: Create the installation path and modify the permission:
Mkdir-p/opt/11g/oracle
Chown-R oracle: oinstall/opt/11g/oracle
Chmod-R 775/opt/11g/oracle
Mkdir-p/opt/11g/oraInventory
Chown-R oracle: oinstall/opt/11g/oraInventory
Chmod-R 775/opt/11g/oraInventory
Step 7: vi/home/oracle/. bash_profile. You can set the value of ORACLE_SID to orcl.
TMP =/tmp; export TMP
ORACLE_BASE =/opt/11g/oracle; export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
ORACLE_SID = orcl; export ORACLE_SID
ORACLE_TERM = xterm; export ORACLE_TERM
PATH = $ ORACLE_HOME/bin:/usr/sbin: $ PATH; export PATH LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib;
Export LD_LIBRARY_PATH
CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib;
Export CLASSPATH
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Umask 022
Make environment variables take effect:
Source ~ /. Bash_profile