1、 下载yum 配置
# cd /etc/yum.repos.d/
# wget http://public-yum.oracle.com/public-yum-ol6.repo
2、 安装RMP-GPG-KEY
wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
3、 安装oracle-rdbms-server-11gR2-preinstall包
# yum install oracle-rdbms-server-11gR2-preinstall
4、删除public-yum-ol7.repo
# cd /etc/yum.repos.d
# rm public-yum-ol6.repo