cent7.3离线安装oracle19c

需要准备的安装包下载

oracle-database-ee-19c-1.0-1.x86_64.rpm

oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

下载依赖

http://rpmfind.net/linux/rpm2html/search.php?query=compat-libstdc%2B%2B-33&submit=Search+...&system=&arch=

compat-libstdc -33-3.2.3-72.el7.x86_64.rpm

下载yum镜像包

http://mirrors.163.com/centos-vault/

(CentOS-7-x86_64-DVD-1611.iso)

 

先配置yum源为本地镜像的CentOS-7-x86_64-DVD-1611.iso文件

参考https://blog.csdn.net/xtaypyvi123456/article/details/124688172

 

安装compat-libstdc -33-3.2.3-72.el7.x86_64.rpmiso文件里面有没,需要独立下载安装

 

然后安装oracle,可能遇到bind版本不匹配,卸载自带了安装新的即可

yum localintstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

 

接着安装

yum localintstall oracle-database-ee-19c-1.0-1.x86_64.rpm

 

先不要初始化,编辑下面文件,根据需要改字符集

[root@localhost ~]# vi /etc/sysconfig/oracledb_ORCLCDB-19c.conf

 

如果需要修改端口课编辑这个文件

[root@localhost ~]# vi /etc/init.d/oracledb_ORCLCDB-19c

 

初始化

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

 

 添加环境变量

Su oracle

Vi .path_profile

export  ORACLE_BASE=/opt/oracle

export  ORACLE_HOME=$ORACLE_BASE/product/19c/dbhome_1

export  ORACLE_SID=ORCLCDB

export  PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

export  LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

export  NLS_LANG=AMERICAN_AMERICA.UTF8

 

连接oracle解锁用户

Sqlplus as / sysbda

alter user system  account unlock;

alter user system identified by password;

 

防火墙放行端口

firewall-cmd --add-port=1521/tcp --permanent

firewall-cmd --list-port --permanent (查看开放的永久端口)

 

posted @ 2022-09-02 09:40  newbee中的newbee  阅读(194)  评论(0编辑  收藏  举报