oracle-database-ee-19c-1.0-1.x86_64.rpm
下载地址:https://www.oracle.com/database/technologies/oracle19c-linux-downloads.html
oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
链接:https://pan.baidu.com/s/1iJTxrSQ8-QaUxPHIILRigw
提取码:f0u3
依赖包
链接:https://pan.baidu.com/s/1iAWXKe2qxy7a0M_kJaT6_A
提取码:i7sr
(1)关闭防火墙
关闭操作系统自启动:
systemctl stop firewalld.service
systemctl disable firewalld.service
检查关闭情况:
systemctl status firewalld.service
dead表示未开启开机启动;inactive表示现在的状态是关闭
(2)关闭selinux,编辑/etc/selinux/config 文件
[root@local /]# vi /etc/selinux/config
(3)安装依赖包
a.新建oracle_rpm文件夹,将压缩包中rpm文件放在这个文件夹中
b.进入oracle_rpm目录,运行所有的rpm依赖包
rpm -ivh *.rpm --force --nodeps
(4)安装oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
rpm -ivh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
(5)安装oracle-database-ee-19c-1.0-1.x86_64.rpm
yum install -y oracle-database-ee-19c-1.0-1.x86_64.rpm
(6)创建数据库
/etc/init.d/oracledb_ORCLCDB-19c configure
(7)环境变量配置
a.su - oracle
进入oracle用户下
b.编辑 vi .bash_profile
,在文件最后添加以下代码
export ORACLE_BASE=/opt/oracle export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1 export ORACLE_SID=ORCLCDB export PATH=$ORACLE_HOME/bin:$PATH:$HOME/.local/bin:$HOME/bin
c.执行文件,使环境变量生效
source .bash_profile
d.执行命令:sqlplus / as sysdba
,表示数据库安装成功。