数据库
首页 > 数据库> > rpm安装oracle

rpm安装oracle

作者:互联网

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