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,执行脚本并进行安装

cd /etc/init.d/
./oracledb_ORCLCDB-19c configure

7,修改sys密码

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

 

 

 

 

 

 

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

本文仅供自己学习使用

 

posted @   陌风陌风  阅读(116)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示