System version redhat5.6
A pre-installation environment configuration
View Memory
grep memtotal/proc/meminfo
grep swaptotal/proc/meminfo
(or free-m simultaneously view memory and swap space, generally need memory 2g,swap space 2G)
Modify the user's shell limit, modify the/etc/security/limits.conf file
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Oracle Soft Stack 10240
Modify the/etc/pam.d/login file
Session required/lib/security/pam_limits.so
Session Required Pam_limits.so
Modify the Linux kernel, modify the/etc/sysctl.conf file, enter the command: vi/etc/sysctl.conf
FS.AIO-MAX-NR = 1048576
Fs.file-max = 6815744
Kernel.shmall = 2097152
Kernel.shmmax = 4294967295
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 = 1048576
Execute sysctl-p make sysctl.conf file effective
Edit/etc/profile Add the following to the file.
if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Create related users and groups
Groupadd-g Oinstall
GROUPADD-G 1001 DBA
GROUPADD-G 1002 Oper
Useradd-u 1001 oracle-d/home/oracle-g oinstall-g dba,oper
Create the relevant directory and change the owner of the directory
Mkdir/u01
Chown-r oracle:oinstall/u01
Chmod-r 755/u01
Set the environment variables for Oracle. Bash_profile
Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/product/11.2.0/dbhome_1
Export ORACLE_SID=ORA11GR2
Export path= $PATH: $HOME/bin: $ORACLE _home/bin
Install the Lazy pack under Linux (it is recommended to install it with RPM before attempting to use Yum)
Configure Yum
/etc/yum.repo.d/yum.repo
[Redhat5u6]
Name=redhat5u6
baseurl=file:///test/server/
Enabled=1
Gpgcheck=0
Yum Clean All
Yum List
Install as required by official documentation
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (+ bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
Glibc-2.5-24
Glibc-2.5-24 (+ bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (+ bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (+ bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (+ bit)
libgcc-4.1.2
libgcc-4.1.2 (+ bit)
libstdc++-4.1.2
libstdc++-4.1.2 (+ bit)
Libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
Second, the installation process:
Unpacking unzip
Generate a database folder
Configuring the Graphical interface
./runinstaller---> Installation software
DBCA Building Library
Environment configuration prior to Oracle database installation