Linux下Oracle19c离线rpm安装

Linux下Oracle19c离线rpm安装


一、基础环境配置及依赖安装
(1)关闭系统防火墙(如外网环境不能关闭防火墙自行开放相关需要使用的端口即可)
systemctl stop firewalld
syustemctl disable firewalld

(2)关闭selinux
vim /etc/selinux/config
SELINUX=disabled

(3)安装oracle需要的依赖(已通过互联网提前下载并制作yum仓库,配置一个离线yum源直接安装即可)
链接:https://pan.baidu.com/s/1zg6DUG0BTxY7H63lj78CrA 提取码:2ucb
unzip base.zip

创建离线yum源,备份原有repo文件,创建local.repo文件
echo "[local]" > /etc/yum.repos.d/local.repo
echo "name=local" >> /etc/yum.repos.d/local.repo
echo "enable=1" >> /etc/yum.repos.d/local.repo
echo "baseurl=file:///root/base" >> /etc/yum.repos.d/local.repo
echo "gpgcheck=0" >> /etc/yum.repos.d/local.repo

yum clean all

(4)安装oracle-database-preinstall
链接:https://pan.baidu.com/s/11TGhQ8H95umuV5PRUrfEcw 提取码:3yru
yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

二、安装配置Oracle 19c
(1)安装Oracle 19c
yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm

(2)初始化Oracle数据库,这个过程一般比较漫长
/etc/init.d/oracledb_ORCLCDB-19c configure

出现如下情况:如果nastat -nl |grep 1521没有结果,很可能是主机名设置有问题。

 Linux下Oracle19c离线rpm安装

 

 

 

(3)配置环境变量,切换到oracle用户下
su - oracle

vim .bash_profile #在最后添加如下几行
export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
export PATH=$PATH:/opt/oracle/product/19c/dbhome_1/bin
export ORACLE_SID=ORCLCDB

source .bash_profile

(4)登陆oracle数据库
sqlplus / as sysdba

(5)修改密码
alter user system identified by 123456;

(6)使用官方连接工具sqldeveloper连接

 

上一篇:CentOS6 yum命令报错YumRepo Error: All mirror URLs are not using...,修改Yum源后404 Not Found


下一篇:ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly