步奏:
a、确保网络畅通,即可连接到Internet。
b、已经安装了yum包管理工具。c、切换到目录 /etc/yum.repos.d/d、获取配置文件并进行相应修改wget http://public-yum.Oracle.com/public-yum-ol6.repo(所需安装版本项下字段enabled=0更改为enabled=1) e、使用yum安装oracle-rdbms-server-11gR2-PReinstall包(oracle-rdbms-server-11gR2-preinstall)f、校验内核修改日志及原文件备份情况
实战操作:
切换到目录 /etc/yum.repos.d/[root@oel63 ~]# cd /etc/yum.repos.d/
获取配置文件并进行相应修改[root@oel63 yum.repos.d]# wget http://public-yum.oracle.com/public-yum-ol6.repo--2014-05-16 14:41:51-- http://public-yum.oracle.com/public-yum-ol6.repoResolving public-yum.oracle.com... 184.51.198.32, 184.51.198.8, 184.51.198.65Connecting to public-yum.oracle.com|184.51.198.32|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 4233 (4.1K) [text/plain]Saving to: “public-yum-ol6.repo”
100%[======================================>] 4,233 --.-K/s in 0.001s
2014-05-16 14:41:51 (5.76 MB/s) - “public-yum-ol6.repo” saved [4233/4233
[root@oel63 yum.repos.d]# ls -hltrtotal 8.0K-rw-r--r--. 1 root root 4.2K Nov 25 04:58 public-yum-ol6.repo
[root@oel63 yum.repos.d]# vi public-yum-ol6.repo#本环境为Oracle linux 6.3,因此修改了以下2个部分。即将需要安装的部分的enabled的值置为1[ol6_u3_base]name=Oracle Linux $releasever Update 3 installation media copy ($basearch)baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/3/base/$basearch/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oraclegpgcheck=1enabled=1
[ol6_UEK_base]name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oraclegpgcheck=1enabled=1
使用yum安装oracle-rdbms-server-11gR2-preinstall包[root@oel63 yum.repos.d]# yum install oracle-rdbms-server-11gR2-preinstall
校验结果[root@oel63 ~]# cd /var/log/oracle-rdbms-server-11gR2-preinstall/results/[root@oel63 results]# lsorakernel.log[root@oel63 results]# more orakernel.log参考链接:http://www.linuxidc.com/Linux/2014-09/106127.htm
新闻热点
疑难解答