ICode9

精准搜索请尝试: 精确搜索
首页 > 数据库> 文章详细

rpm安装oracle

2022-03-10 14:02:26  阅读:233  来源: 互联网

标签:x86 rpm 64 SELinux oracle 安装 19c


1,关闭防火墙以及selinux服务

首先防火墙是一定要一定要关闭的哦
#systemctl stop firewalld.service
关闭操作系统自启动
#systemctl disable firewalld.service
检查关闭情况
systemctl status firewalld.service
如下,dead表示未开启开机启动;inactive表示现在的状态是关闭
 
[root@DBServer1 ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

2,安装依赖包

yum install libstdc++-devel compat-libstdc++-33 ksh glibc-devel libaio-devel compat-libcap1

3,下载安装包,并且进行预安装

curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

安装预安装包

yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

4,配置环境变量,这里需要用到root权限

su – oracle
vi ~/.bash_profile
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=ORCLCDB

5,下载介质

我们需要先从以下地址,也就是官网上下载一个oracle19c的rpm安装包

http://www.oracle.com/technetwork/indexes/downloads/index.html

Oracle:19.3.0.0.0
oracle-database-ee-19c-1.0-1.x86_64.rpm
然后上传到服务器

并且把它传到  /tmp  目录下

cd /tmp
yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm

6,执行脚本并进行安装

./oracledb_ORCLCDB-19c configure

7,修改sys密码

alter user sys identified by oracle;
alter uer system identified by oracle;

 

 

 

 

 

 

本文转自(1条消息) 如何使用RPM安装ORACLE-19c数据库_qqqyyy0422的博客-CSDN博客

本文仅供自己学习使用

 

标签:x86,rpm,64,SELinux,oracle,安装,19c
来源: https://www.cnblogs.com/Fengdengshuai/p/15989189.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有