Home > Database > Mysql Tutorial > oracle linux yum 使用不了,报错:Couldn't resolve host &

oracle linux yum 使用不了,报错:Couldn't resolve host &

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:37:46
Original
2170 people have browsed it

目的:安装 oracle 11gR2 rac 环境: oracle linux6.3, virtrualBox 安装 rac 参考的文档:http://www.lab128.com/rac_installation_using_vb/article_text_ch.html 1.在使用 yum 安装的时候报错 [root@rac1 yum.repos.d]# yum install oracle-rdbms-server-11g

目的:安装 oracle 11gR2 rac

环境: oracle linux6.3, virtrualBox

安装 rac 参考的文档: http://www.lab128.com/rac_installation_using_vb/article_text_ch.html

1.在使用 yum 安装的时候报错

[root@rac1 yum.repos.d]# yum install oracle-rdbms-server-11gR2-preinstall
Loaded plugins: refresh-packagekit, security
http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'public-yum.oracle.com'" Trying other mirror.
Error: failure: repodata/primary.xml.gz from ol6_latest: [Errno 256] No more mirrors to try.
Copy after login
原因是在: /etc/resolv.conf 中的只有 nameserver 192.168.1.1 (好像这个不能用/DNS 不用)

解决方法一: /etc/resolv.conf 中添加 nameserver 8.8.8.8 (注意:这是google 的服务,如果网上慢安装的就慢)

解决方法二: 使用 本地的 yum 资源 一下是操作

[root@rac1 yum.repos.d]# cd /etc/yum.repos.d
[root@rac1 yum.repos.d]# ls
public-yum-ol6.repo
[root@rac1 yum.repos.d]# mv public-yum-ol6.repo public-yum-ol6.repo.bak
[root@rac1 yum.repos.d]# vi public-yum-ol6-local.repo
[oel6_local]
name = Enterprise Linux 6.3 DVD
baseurl=file:///mnt/cdrom/Server/
gpgcheck=0
enabled=1
Copy after login
保存退出

在 virtualBox 中挂上 oracle-linux-6.3.iso 

[root@rac1 yum.repos.d]# cd /mnt
[root@rac1 mnt]# mkdir cdrom
[root@rac1 mnt]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@rac1 mnt]# yum install oracle-rdbms-server-11gR2-preinstall
Copy after login
操作成功!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template