在centos 7.6 安装oracle-database-server-12cR2-preinstall

 admin   2020-12-01 14:29   342 人阅读  0 条评论

在centos 7.6 安装oracle-database-server-12cR2-preinstall过程如下:

1,配置合适的yum源,需要oracle 提供的yum源,同时我也配好了阿里的镜像源

wget -O /etc/yum.repos.d/oracle.repo http://public-yum.oracle.com/public-yum-ol7.repo
wget -O /etc/yum.repos.d/epel.repo  http://mirrors.aliyun.com/repo/epel-7.repo

yum clean all
yum makecache

2,安装oracle-database-server-12cR2-preinstall

yum -y install oracle-database-server-12cR2-preinstall

报错GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle"

vim /etc/yum.repos.d/oracle.repo
把gpgcheck=1,改为gpgcheck=0

继续执行:yum -y install oracle-database-server-12cR2-preinstall

Transaction check error:
  file /usr/lib/systemd/system-preset/90-default.preset from install of redhat-release-server-1:7.8-2.0.1.el7.x86_64 conflicts with file from package centos-release-7-6.1810.2.el7.centos.x86_64
  file /etc/os-release from install of oraclelinux-release-7:7.8-1.0.7.el7.x86_64 conflicts with file from package centos-release-7-6.1810.2.el7.centos.x86_64
  file /etc/redhat-release from install of oraclelinux-release-7:7.8-1.0.7.el7.x86_64 conflicts with file from package centos-release-7-6.1810.2.el7.centos.x86_64
  file /etc/rpm/macros.dist from install of oraclelinux-release-7:7.8-1.0.7.el7.x86_64 conflicts with file from package centos-release-7-6.1810.2.el7.centos.x86_64
  file /etc/system-release from install of oraclelinux-release-7:7.8-1.0.7.el7.x86_64 conflicts with file from package centos-release-7-6.1810.2.el7.centos.x86_64
  file /etc/system-release-cpe from install of oraclelinux-release-7:7.8-1.0.7.el7.x86_64 conflicts with file from package centos-release-7-6.1810.2.el7.centos.x86_64

 

报错 oracle需要redhat版本信息,因为oracle官方要求使用redhat,我们删除centos版本信息

rpm -e --nodeps centos-release-7-6.1810.2.el7.centos.x86_64

版本信息由centos变成了redhat
[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
[root@localhost packages]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.8 (Maipo)

继续执行:yum -y install oracle-database-server-12cR2-preinstall

安装成功

执行日志

[root@localhost ~]# cd /var/log/oracle-database-server-12cR2-preinstall/results/


本文地址:https://liuchunjie.top/?id=267
版权声明:本文为原创文章,版权归 admin 所有,欢迎分享本文,转载请保留出处!

 发表评论


表情

还没有留言,还不快点抢沙发?