【最新】在Centos8上安装Oracle 19c过程

目录

1.配置centos8的yum源

2.下载安装包 LINUX.X64_193000_db_home.zip

3.安装前准备工作

3.1创建组和用户

3.2修改用户密码

3.3关闭防火墙、selinux

3.4创建工作的目录,并赋予相应的权限

3.5配置Oracle的环境变量

3.6修改内核参数

3.7下面开始安装oracle依赖包

4.解压下载的安装包

5.安装Oracle 19c

6.切换到安装目录,执行安装

7.图形界面安装

8.继续安装

9.提示安装成功


 

        最近一个自有项目同时用到oracle和mysql(后续会去IOE),搭建演示环境操作系统选择了当下较新版本的OS和DB。下面为大家描述在Centos8上安装Oracle 19c具体过程以及遇到的问题。

 

1.配置centos8的yum源

[root@oracledb home]# cat /etc/redhat-release  //查看当前源
[root@oracledb home]# cd /etc/yum.repos.d //查看配置文件
[root@oracledb home]# CentOS-Base.repo //这是系统自带的yum源
[root@oracledb home]# mkdir bak
[root@oracledb home]# mv *.repo bak/
[root@oracledb home]# wget http://mirrors.aliyun.com/repo/Centos-8.repo //下载匹配的源配置文件
[root@oracledb home]# yum clean all
[root@oracledb home]# yum makecache //生成缓存

2.下载安装包 LINUX.X64_193000_db_home.zip

下载地址:https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html 

3.安装前准备工作

3.1创建组和用户

[root@oracledb home]# /usr/sbin/groupadd -g 54321 oinstall
[root@oracledb home]# /usr/sbin/groupadd -g 54322 dba
[root@oracledb home]# /usr/sbin/groupadd -g 54323 oper
[root@oracledb home]# /usr/sbin/useradd -u 54321 -g oinstall -G dba,oper oracle

3.2修改用户密码

[root@oracledb home]# passwd oracle

3.3关闭防火墙、selinux

//关闭防火墙
[root@oracledb home]# /bin/systemctl stop firewalld.service
[root@oracledb home]# /bin/systemctl disable firewalld.service

//关闭:将SELINUX设置为disabled
[root@oracledb home]# cat /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 - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of these three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

3.4创建工作的目录,并赋予相应的权限

[root@oracledb home]# mkdir -p /u01/app/oracle/product/19.2.0/db_1
[root@oracledb home]# chown -R oracle:oinstall /u01/
[root@oracledb home]# chmod -R 775 /u01/

3.5配置Oracle的环境变量

[root@oracledb home]# su oracle
[oracle@oracledb home]$ vim .bash_profile
[oracle@oracledb home]$ cd ~
[oracle@oracledb ~]$ vim .bash_profile 

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs
ORACLE_SID=sanshi;export ORACLE_SID
ORACLE_UNQNAME=sanshi;export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/19.2.0/db_1; export ORACLE_HOME
NLS_DATE_FORMAT="YYYY:M
  • 12
    点赞
  • 44
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值