CentOS Oracle 安裝是非常簡單的,只需遵循以下步驟:
第一步 - 確認您的系統是否滿足Oracle的要求
[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 8.3.2011 [root@localhost ~]# cat /proc/version Linux version 4.18.0-240.el8.x86_64 (mockbuild@builder10.centos.org) (gcc version 8.4.1 20200928 (Red Hat 8.4.1-1) (GCC)) #1 SMP Tue Jul 28 17:34:08 UTC 2020 [root@localhost ~]# getconf LONG_BIT 64 [root@localhost ~]# df -h /tmp | awk '{ print $1 }' | grep dev /dev/sda5 [root@localhost ~]# mount | grep -w /tmp | cut -d' ' -f1 /dev/sda5 [root@localhost ~]# grep Hugepagesize /proc/meminfo Hugepagesize: 2048 kB [root@localhost ~]# grep MemTotal /proc/meminfo MemTotal: 8031148 kB [root@localhost ~]# cat /etc/sysctl.conf | grep kernel.sem kernel.sem=250 32000 100 128 [root@localhost ~]# cat /etc/limits.conf | grep -w memlock oracle soft memlock 8204800 oracle hard memlock 8204800 [root@localhost ~]# rpm -q libaio-devel libaio-devel-0.3.112-1.el8.x86_64 [root@localhost ~]# rpm -q compat-libstdc++-33 compat-libstdc++-33-3.2.3-72.el8.x86_64 [root@localhost ~]# rpm -q libstdc++ libstdc++-8.4.1-1.el8.x86_64 [root@localhost ~]# rpm -q elfutils-libelf-devel elfutils-libelf-devel-0.182-1.el8.x86_64 [root@localhost ~]# rpm -q gcc gcc-8.4.1-1.el8.x86_64 [root@localhost ~]# rpm -q gcc-c++ gcc-c++-8.4.1-1.el8.x86_64 [root@localhost ~]# rpm -q ksh ksh-20120801-1390.el8.x86_64 [root@localhost ~]# rpm -q libgcc libgcc-8.4.1-1.el8.x86_64 [root@localhost ~]# rpm -q libstdc++-devel libstdc++-devel-8.4.1-1.el8.x86_64
第二步 - 下載Oracle 19c并解壓
[root@localhost ~]# tar -xvf LINUX.X64_193000_db_home.zip
第三步 - 安裝依賴軟件包
[root@localhost ~]# yum install -y oracle-database-preinstall-19c
第四步 - 運行Oracle安裝腳本
[root@localhost ~]# ./runInstaller
第五步 - 配置Oracle
[root@localhost ~]# /opt/oraInventory/orainstRoot.sh [root@localhost ~]# /opt/oracle/product/19.0.0/dbhome_1/root.sh
安裝完成后,您可以檢查Oracle的版本:
[oracle@localhost ~]$ sqlplus / as sysdba SQL>select banner from v$version; BANNER ---------------------------------------------------------------------------------- Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0
在CentOS上安裝Oracle 19c非常簡單,只需要遵循上面列出的步驟即可。通過在系統中正確安裝Oracle,您可以在其上開發和管理應用程序,以及運行有關基于Oracle的關鍵任務的程序。無論您是管理大型企業數據庫還是起步使用,在CentOS上安裝Oracle都非常簡單。