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博客

本文仅供自己学习使用

 

相关文章

文章浏览阅读773次,点赞6次,收藏9次。【代码】c# json字符...
文章浏览阅读8.7k次,点赞2次,收藏17次。此现象一般定位到远...
文章浏览阅读2.8k次。mysql脚本转化为oracle脚本_mysql建表语...
文章浏览阅读2.2k次。cx_Oracle报错:cx_Oracle DatabaseErr...
文章浏览阅读1.1k次,点赞38次,收藏35次。本文深入探讨了Or...
文章浏览阅读1.5k次。默认自动收集统计信息的时间为晚上10点...