CentOS 7 安装 Oracle 12cR2 的一种快捷方法 (仅测试环境)

本文详细介绍了在CentOS 7上安装Oracle 12cR2的步骤,包括解决yum安装预装包时的错误,创建Oracle安装目录,设置环境变量,创建启动脚本,并编写systemd服务脚本以实现开机启动。
摘要由CSDN通过智能技术生成

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

wget http://public-yum.oracle.com/public-yum-ol7.repo -O /etc/yum.repos.d/public-yum-ol7.repo
wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
yum -y install oracle-database-server-12cR2-preinstall

yum -y install oracle-database-server-12cR2-preinstall 这一步一般会报如下错误:

Running transaction check
Running transaction test


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-8.2003.0.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-8.2003.0.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-8.2003.0.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-8.2003.0.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-8.2003.0.el7.centos.x86_64
  
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值