I. Oracle pre-installation Preparation
Check the package and you must install it all:
Binutils-2.20.51.0.2-5.43.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
Compat-libstdc++-33-3.2.3-69.el6.x86_64
Elfutils-libelf-0.161-3.el6.x86_64
Elfutils-libelf-devel-0.161-3.el6.x86_64
Gcc-4.4.7-16.el6.x86_64
Gcc-c++-4.4.7-16.el6.x86_64
Glibc-2.12-1.166.el6_7.3.x86_64
glibc-2.12-1.166.el6_7.3.i686
Glibc-common-2.12-1.166.el6_7.3.x86_64
Glibc-devel-2.12-1.166.el6_7.3.x86_64
glibc-devel-2.12-1.166.el6_7.3.i686
libaio-0.3.107-10.el6.i686
Libaio-0.3.107-10.el6.x86_64
libaio-devel-0.3.107-10.el6.i686
Libaio-devel-0.3.107-10.el6.x86_64
libgcc-4.4.7-16.el6.i686
Libgcc-4.4.7-16.el6.x86_64
Libstdc++-4.4.7-16.el6.x86_64
libstdc++-4.4.7-16.el6.i686
Libstdc++-devel-4.4.7-16.el6.x86_64
libstdc++-devel-4.4.7-16.el6.i686
Make-3.81-20.el6.x86_64
Sysstat-9.0.4-27.el6.x86_64
unixodbc-2.2.14-14.el6.i686
Unixodbc-2.2.14-14.el6.x86_64
unixodbc-devel-2.2.14-14.el6.i686
Unixodbc-devel-2.2.14-14.el6.x86_64
Two. Create Oracle Users and Groups
Su-root
Groupadd Oinstall
Groupadd dba
USERADD-G oinstall-g dba Oracle
echo oracle|passwd--stdin Oracle
Three. System parameters and configuration files
1. Add the following to the file/etc/sysctl.conf
KERNEL.SYSRQ = 0
Kernel.core_uses_pid = 1
Net.ipv4.tcp_syncookies = 1
KERNEL.MSGMNB = 65536
Kernel.msgmax = 65536
Kernel.shmmax = 4294967295
Kernel.shmall = 268435456
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 4194304
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048576
Fs.file-max = 6815744
FS.AIO-MAX-NR = 1048576
/sbin/sysctl-p
2. Add the following to the file /etc/security/limits.conf
Session required/lib64/security/pam_limits.so
Session Required Pam_limits.so
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
3. Add as down to file/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
Four. Modifying environment variables
/home/oracle/.bash_profile
#. Bash_profile
# Get the aliases and functions
If [-f ~/.BASHRC]; Then
. ~/.bashrc
Fi
# User specific environment and startup programs
Export ORACLE_SID=ORCL
Export oracle_base=/home/oracle/
Export Ld_library_path= $LD _library_path:oracle_home/lib
Export Oracle_home=/home/oracle/product/11.2.0/dbhome_1
Export oracle_home_listner= $ORACLE _home
Path= $PATH: $HOME/bin: $ORACLE _home/bin
Umask 022
Export PATH
Sh/home/oracle/.bash_profile
Five. Start the installation
Go to Oracle's instal folder
./runlnstaller
If not, an Oracle installation graphical interface will appear,
Follow the prompts to install one step at a
In the second step of installation Oracle will detect if the environment is compliant, if prompted for swap or large, or small, ignore, next
When you are done, follow the prompts to execute with root
Root.sh and
orainstroot.sh
Enter
This is basically done.
Six. Create an instance
To create an instance by using a graphical format
CD $home _oracle/product/11.2.0/dbhome_1/bin/
./DBCA
Then the graphical interface for creating the instance will appear and follow the prompts to proceed to the next step.
This article from the "It Operation and Maintenance" blog, reproduced please contact the author!
Install Oracle 11g R2 Standard Edition 64-bit on Linux