System Preparation
Vi/etc/selinux/config Iptables-fiptables-l/etc/init.d/iptables Save
1. Network
2. Memory >3g
Free-m
3. Storage >60g
Df-lh
4. Create users and user groups
Groupadd oinstallgroupadd dbauseradd-g oinstall-g dba oraclepasswd oraclemkdir-p /home/oracle/appmkdir /home/oracle/app/orainventorymkdir/home/oracle/app/oraclemkdir/home/oracle/app/oracle/productchown-r Oracle:o Install /home/oracle/appchmod-r 775 /home/oracle/app/
5.yum Source
Yum Install Wget-ycd/etc/yum.repos.d/wget-o/etc/yum.repos.d/centos-base.repo http://mirrors.163.com/.help/ Centos6-base-163.repoyum Makecacheyum updateyum Upgradeyum install Java-1.8.0-openjdk.x86_64yum install Ntpdate-yyum Install unzip-yyum-y install binutils compat-libcap1 compat-libstdc++.i686 compat-libstdc++.x86_64 elfutils-libelf Elfutils-libelf-devel gcc gcc-c++ glibc.i686 glibc.x86_64 glibc-devel.i686 glibc-devel.x86_64 ksh libgcc.i686 libgcc.x86_64 libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 libaio.i686 libaio.x86_64 libaio-devel.i686 libaio-devel.x86_64 libxext libxtst libX11 libxau libxcb libxi make Sysstat unixodbc-devel.i686 UnixODB c-devel.x86_64 unixodbc.i686 unixodbc.x86_64 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64#----------Yum Install Pdkshyum install-y ksh*
6. Modify System Configuration Parameters
vi/etc/sysctl.conf "Kernel.shmall = 4294967296fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 32000 128net.ipv4.ip_local_port_range = 9000 6550 0net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586 "" vi/etc/security/limits.conf "Oracle soft nproc 2047oracle hard nproc 16384oracle Soft nofile 1024oracle hard nofile 65536oracle hard stack 10240 "CAT/ Proc/slabinfo | grep kiovi/etc/profile "if [$USER =" Oracle "]; thenif [$SHELL = "/bin/ksh"]; Thenulimit-p 16384ulimit-n 65536elseulimit-u 16384-n 65536fifi "Source/etc/profile
7.root User Decompression After installation modify directory permissions [or to the Oracle user under the decompression installation]
Cd/home/oracleunzip linux.x64_11gR2_database_1of2.zipunzip linux.x64_11gR2_database_2of2.zip chown-r oracle:o Install /home/oraclechmod-r 775 /home/oracle
8. Installing the graphical user interface
Yum Groupinstall "Desktop" Yum groupinstall "X Window System" Yum groupinstall "KDE Desktop"
----
#启用图形用户界面
Init 5
9. Install./runinstall
1. Uncheck (update password support)
2. Option "Create and configure a database"
3. "Desktop Class"
4. Enter the Administrator password
5. Direct Next
6. Tick "Ignore all" and next
7. Click "Password Management", set the Sys/system two password
8. Install and run two scripts at a last
Bash orainventory/orainstroot.sh
Bash app/oracle/product/11.2.0/dbhome_1/root.sh
9.Finish
10. Login
#sqlplus/as SYSDBA
CENTOS6 Installing Oracle 11g