參考:http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCBCFDI
1、配置本地yum源 加載iso鏡像到目錄 /mnt
進入/etc/yum.repos.d目錄,新建bak文件夾
將所有repo文件移動到bak文件夾,並保留CentOS-Base.repo的一個拷貝
編輯CentOS-Base.repo修改成如下
[code][base]
name=CentOS-$releasever - Base
baseurl=file:///mnt
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
2、安裝所需的packages[code]yum clean all
yum list
yum install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33.i686 gcc gcc-c++ glibc glibc.i686 glibc-devel glibc-devel.i686 ksh libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 libaio libaio.i686 libaio-devel libaio-devel.i686 make sysstat elfutils-libelf-devel
3、創建數據庫用戶[code]/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -g oinstall -G dba oracle
passwd oracle <<!
oracle
oracle
!
4、配置內存參數和資源限制[code]編輯/etc/sysctl.conf,根據自己需求添加如下最低要求,若系統存在更大的,那麼使用更大的值
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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
刷新配置: /sbin/sysctl -p
5、配置oracle用戶的資源限制編輯/etc/security/limits.conf,添加如下:
[code]oracle soft nofile 4096
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
6、創建安裝目錄[code]# mkdir -p /mount_point/app/
# chown -R oracle:oinstall /mount_point/app/
# chmod -R 775 /mount_point/app/
For example:
# mkdir -p /rdbms/u01/app/
# chown -R oracle:oinstall /rdbms/u01/app/
# chmod -R 775 /rdbms/u01/app/
7、在/etc/hosts添加IP域名映射[code]For example:
192.168.227.135 Centos01
8、根據自己需求,配置用戶環境變量[code]vi ~/.bash_profile ,添加
export ORACLE_BASE=/rdbms/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH
9、開始安裝 在同一目錄裡解壓安裝文件
unzip p13390677_112040_Linux-x86-64_1of7.zip
unzip p13390677_112040_Linux-x86-64_2of7.zip
在圖形環境下,進入解壓後的目錄database,直接運行./runInstaller 開始安裝
安裝過程如下:

前面兩項跳過即可






可以保存下響應文件。




(密碼配置界面,沒有截圖)
完成安裝。