登录oracle官网,搜索19c,点击第一条
点击左下角的ownload Database 19c
本文下载的是rpm版本
下载预安装环境wget https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
执行安装命令sudo rpm -ivh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
显示缺少依赖包
sudo yum install -y gcc-c++ make
sudo yum install -y ksh
sudo yum install -y sysstat
sudo yum install libaio-devel
compat-libstdc++-33及compat-libcap1通过yum下载不到
百度搜索找到一个网址下载
http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libcap1-1.10-7.el7.x86_64.rpm
rpm -ivh compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
rpm -ivh compat-libcap1-1.10-7.el7.x86_64.rpm
ok,环境若还缺的朋友可以通过yum把配置补全
sudo rpm -ivh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
sudo rpm -ivh oracle-database-ee-19c-1.0-1.x86_64.rpm
sudo /etc/init.d/oracledb_ORCLCDB-19c configure
要等挺久的
netstat -nultp | grep -E '1521|5500'
ps -ef | grep -i orcl | grep -v grep
至此安装完成。
安装完后自然是连接
切换到root用户
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
切换到oracle用户,执行 sqlplus / as sysdba