1. Download the Installation File
Use the installation package 10201_database_linux32.zip and log on as the root user.
2. Check whether the system resources and environment meet the installation conditions.
Grep MemTotal/proc/meminfo: the memory size must be greater than 512 MB.
Grep SwapTotal/proc/meminfo
In addition, GB of disk space is required for 10 Gb.
[Root @ localhost ~] # Grep MemTotal/proc/meminfo
MemTotal: 1035400 kB
[Root @ localhost ~] # Grep SwapTotal/proc/meminfo
SwapTotal: 2031608 kB
[Root @ localhost ~] # Df-h
File System capacity used available % mount point
/Dev/mapper/VolGroup00-LogVol00
37 GB 5.3G 30G 15%/
/Dev/sda1 99 M 11 M 83 M 12%/boot
Tmpfs 506 M 0 506 M 0%/dev/shm
[Root @ localhost ~] #
# Vi/etc/RedHat-relese
Add the content in Red Hat Enterprise Linux Server release 5 (Tikanga)
Change
Redhat-4
Install the required software package, for example: (you can download it from the Server where the system disk is installed)
3. Create users and groups, and orcale installation directory and data storage directory
[Root @ localhost ~] # Groupadd oinstall
[Root @ localhost ~] # Groupadd dba
[Root @ localhost ~] #/Usr/sbin/useradd-g oinstall-G dba Oracle
[Root @ localhost ~] # Passwd oracle
Changing password for user oracle.
New UNIX password:
Bad password: it is WAY too short
Retype new UNIX password:
Sorry, passwords do not match.
New UNIX password:
Retype new UNIX password:
Passwd: all authentication tokens updated successfully.
[Root @ localhost ~] # Mkdir/opt/oracle
[Root @ localhost ~] # Mkdir/opt/oradata
[Root @ localhost ~] # Chown-R oracle: oinstall/opt/oracle/opt/oradata
[Root @ localhost ~] # Chmod-R 755/opt/oracle/opt/oradata
4. Configure Environment Variables
Switch users and configure user environment variables
[Root @ localhost ~] # Su oracle
[Oracle @ localhost root] $ vi/home/oracle/. bash_profile
Add the following content:
#. Bash_profile
# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi
# User specific environment and startup programs
# Controls the maximum shared segment size, in bytes
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
# Controls the maximum number of shared memory segments, in pages
Kernel. shmall = 2097152
ORACLE_BASE =/opt/oracleORACLE_SID = orclORACLE_HOME = $ ORACLE_BASE/product/10.2.0/region = $ ORACLE_HOME/libPATH = $ PATH: $ HOME/bin: $ ORACLE_HOME/binexport ORACLE_BASE ORACLE_SID ORACLE_HOME export PATH
5. Set System Parameters
Switch to root user
# Controls the maximum shared segment size, in bytes
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
# Controls the maximum number of shared memory segments, in pages
Kernel. shmall = 2097152