Related configuration before installing oracle Database in linux;
# Root
#/Etc/sysctl. conf
Cp/etc/sysctl. conf/etc/sycotl. confbackup
Echo kernel. shmall = 2097152>/etc/sysctl. conf
Echo kernel. shmmax = 2147483648>/etc/sysctl. conf
# Semaphores: semmsl, semmns, semopm, semmni
Echo kernel. sem = 250 32000 100 128>/etc/sysctl. conf
Echo fs. file-max = 65536>/etc/sysctl. conf
Echo net. ipv4.ip _ local_port_range = 1024 65000>/etc/sysctl. conf
Echo net. core. rmem_default = 262144>/etc/sysctl. conf
Echo net. core. rmem_max = 262144>/etc/sysctl. conf
Echo net. core. wmem_default = 262144>/etc/sysctl. conf
Echo net. core. wmem_max = 262144>/etc/sysctl. conf
/Sbin/sysctl-p
#/Etc/security/limits. conf
Cp/etc/security/limits. conf/etc/security/limits. confbackup
Echo oracle soft nproc 2047>/etc/security/limits. conf
Echo oracle hard nproc 16384>/etc/security/limits. conf
Echo oracle soft nofile 1024>/etc/security/limits. conf
Echo oracle hard nofile 65536>/etc/security/limits. conf
#/Etc/pam. d/login
Cp/etc/pam. d/login/etc/pam. d/loginbackup
Echo session required/lib/security/pam_limits.so>/etc/pam. d/login
# Root users create users and modify environment variables:
# Creating group users
/Usr/sbin/groupadd oinstall
# Creating group users
/Usr/sbin/groupadd dba
# Create a user and set a user group
/Usr/sbin/useradd-g oinstall-G dba oracle
# Set the password of an oracle user. A strong password is required for linux.
Passwd oracle
Su-oracle
# Log on to the operating system using oracle and edit the. bash_profile file (The. bash_profile file is a hidden file, and its location is/home/oracle/. bash_profile)
# Add the following content under the. bash_profile file:
Cp. bash_profile. bash_profilebackup
Echo ORACLE_BASE =/oracle/app>. bash_profile
Echo ORACLE_HOME = $ ORACLE_BASE/oracle/product/10.2.0/db_1>. bash_profile
Echo ORACLE_SID = TEST>. bash_profile
Echo PATH = $ PATH: $ HOME/bin: $ ORACLE_HOME/bin>. bash_profile
Echo LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib>. bash_profile
Echo LANG = C>. bash_profile
Echo export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH LANG>. bash_profile
# Make the preceding environment variable settings take effect
Source. bash_profile
Mkdir-p/opt/oracle/app
Chmod-R 777/opt/oracle/app
Chown-R oracle. oinstall/opt/oracle/app
# Modify the redhat release ID as the root user
Cp/etc/redhat-release/etc/redhat-release.bak
Echo Red Hat Enterprise Linux AS release 3 \ (Taroon \)>/etc/redhat-release
# Verify that the software package installation and environment variable configuration are correct
Rpm-qa | grep compat
Rpm-qa | grep make
Rpm-qa | grep setarch
Echo $ ORACLE_SID
Echo $ ORACLE_HOME
Echo $ ORACLE_BASE
Author: "Kang Jianhua"