1. installation environment requirement 1.1-login su-1.2-RAM requirement with root user OnLinuxX86: at least 1 GB memory grepMemTotalprocmeminfoSwap and RAM relationship
1. installation environment requirement 1.1-root User Login su-1.2-RAM requirement On Linux X86: at least 1 GB memory grep MemTotal/proc/meminfoSwap and RAM relationship
1. installation environment requirements
1.1-Log On As A root user
Su-
1.2-RAM requirements
On Linux X86:
At least 1 GB memory
Grep MemTotal/proc/meminfo
Relationship between Swap and RAM
On Linux X86-64
At least 4 GB memory
Grep MemTotal/proc/meminfo
Relationship between Swap and RAM
View Swap size
Grep SwapTotal/proc/meminfo
1.3-disk space requirements
/Tmp cannot be less than 1 GB
Df-h/tmp
View disk space
Df-h
1.4-RPM package requirements
On Linux X86:
Binutils-2.17.50.0.6
Compat-libstdc ++-33-3.2.3
Elfutils-libelf-0.125
Elfutils-libelf-devel-0.125
Elfutils-libelf-devel-static-0.125
Gcc-4.1.2
Gcc-c ++-4.1.2
Glibc-2.5-24
Glibc-common-2.5
Glibc-devel-2.5
Glibc-headers-2.5
Kernel-headers-2.6.18
Ksh-20060214
Libaio-0.3.106
Libaio-devel-0.3.106
Libgcc-4.1.2
Libgomp-4.1.2
Libstdc ++ 4.1.2
Libstdc +-devel-4.1.2
Make-3.81
Sysstat-7.0.2
UnixODBC-2.2.11 (32 bits)
UnixODBC-devel-2.2.11 (32 bits)
Pdksh-5.2.14
Numactl-0.9.8
LibXp-1.0.0
LibXp-devel-1.0.0
LibXau-devel-1.0.1
On Linux X86-64:
Binutils-2.17.50.0.6
Compat-libstdc ++-33-3.2.3
Compat-libstdc ++-33-3.2.3 (32 bit)
Elfutils-libelf-0.125
Elfutils-libelf-devel-0.125
Elfutils-libelf-devel-static-0.125
Expat-1.95.8
Gcc-4.1.2
Gcc-c ++-4.1.2
Glibc-2.5-24
Glibc-2.5-24 (32 bits)
Glibc-common-2.5
Glibc-devel-2.5
Glibc-headers-2.5
Kernel-headers-2.6.18
Ksh-20060214
Libaio-0.3.106
Libaio-0.3.106 (32 bits)
Libaio-devel-0.3.106
Libaio-devel-0.3.106 (32 bits)
Libgcc-4.1.2
Libgcc-4.1.2 (32 bits)
Libgomp-4.1.2
Libstdc ++ 4.1.2
Libstdc ++-4.1.2 (32 bit)
Libstdc +-devel-4.1.2
Make-3.81
Sysstat-7.0.2
UnixODBC-2.2.11 (32 bits)
UnixODBC-2.2.11 (64 bits)
UnixODBC-devel-2.2.11 (64 bits)
Pdksh-5.2.14
Numactl-0.9.8 (64 bits)
Check whether the package is installed
Rpm-q package_name
Download the installation package online
Yum-y install package_name
Yum-y install binutils compat-libstdc ++-33 elfutils-libelf-devel-static gcc-c ++ glibc-common glibc-devel glibc-headers kernel-headers ksh libaio-devel libgcc libgomp libstdc ++-devel make sysstat unixODBC-devel pdksh numactl XP liblibxp-devel libXau-devel
1.5-Core File editing
Modify the/etc/profile file and set
Ulimit-s-c 0>/dev/null 2> & 1
To:
Ulimit-s-c unlimited>/dev/null 2> & 1
Vi/etc/profile
Press I to enter the editing mode. After modification, Press ESC to enter the command mode and enter ": wq" to save and exit;
1.6-create users and user groups
Create user groups: oinstall, dba, role, asmadmin, asmdba, asmoper
/Usr/sbin/groupadd oinstall
/Usr/sbin/groupadd dba
Create a user: Oracle,
/Usr/sbin/useradd-g oinstall-G dba, asmdba, external oracle
Passwd oracle
1.7-modify oracle user resource limits
Modify/etc/security/limits. conf
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Add the following parameters to/etc/pam. d/login:
Session required pam_limits.so
Add the following parameters to/etc/profile:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Umask 022
Fi
Add the following parameters to/etc/csh. login:
If ($ USER = "oracle") then
Limit maxproc 16384
Limit descriptors 65536
Umask 022
Endif
1.8-configure Kernel Parameters
Modify/etc/sysctl. conf
Kernel. core_uses_pid = 1
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
Fs. suid_dumpable = 1
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. aio-max-nr = 1048576
Fs. file-max = 6815744
Net. ipv4.ip _ local_port_range = 1024 65500
Net. core. rmem_default = 262144
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048586
The preceding parameters are required for the minimum value. If the actual value is greater than the minimum value, the actual value prevails.
Run the command to make the parameter take effect
/Sbin/sysctl-p
Run the command to confirm that the parameter has taken effect.
/Sbin/sysctl-
1.9-create a directory and assign Permissions
Mkdir-p/oracle
Chown-R oracle: oinstall/oracle
Chmod-R 775/oracle
1.10-configure user environment variables
Modify the system version:/etc/RedHat-release
Change CentOS release 5 (final)
Red Hat Enterprise Linux AS release 3 (Taroon)
(Oracle 10 does not support 5)
Modify the/etc/hosts parameter and add
192.168.56.101 localhost. localdomain localhost
192.168.56.101 is the static IP address of the machine.
Disable SELINUX Mode
Edit/etc/selinux/config
Modify SELINUX = disabled
Switch to oracle user
Su-oracle
Modify/home/oracle/. bash_profile
#. Bash_profile
# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi
# User specific environment and startup programs
ORACLE_BASE =/oracle
Export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export ORACLE_HOME
ORACLE_SID = vbora10g
Export ORACLE_SID
NLS_LANG = american_america.UTF8
Export NLS_LANG
LANG = en_US
Export LANG
TNS_ADMIN = $ ORACLE_HOME/network/admin
Export TNS_ADMIN
PATH = $ ORACLE_HOME/bin: $ ORACLE_BASE/common/oracle/bin: $ PATH: $ HOME/bin
Export PATH
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib
Export LD_LIBRARY_PATH
CLASSPATH = $ ORACLE_HOME/jdk/jre: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib
Export CLASSPATH
Umask 022
Save and exit.
Load environment variables:
Source. bash_profile