1. 雲和恩墨公眾號介紹了 18c 通過rpm方式的安裝包.
所以需要先下載一下.
地址.
https://www.oracle.com/technetwork/database/enterprise-edition/downloads/oracle18c-linux-180000-5022980.html
2. 下載直接上傳到 虛擬機就可以了
3. 安裝有 依賴提示.
解決辦法 上官網下載
http://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html
具體的地址為:
http://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
4. 將這個rpm包也安裝上去
安裝
yum localinstall oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm yum localinstall oracle-database-ee-18c-1.0-1.x86_64.rpm
大概要花 25min左右
5. 安裝成功的提示
6. 進行 oracle 數據庫的 配置
/etc/init.d/oracledb_ORCLCDB-18c configure
7.增加一個環境變量 為了 oracle數據庫
vi /etc/profile.d/oracle.sh 新增內容 export ORACLE_HOME=/opt/oracle/product/18c/dbhome_1 export PATH=$PATH:/opt/oracle/product/18c/dbhome_1/bin export ORACLE_SID=ORCLCDB
8. 切換到 oracle 數據庫
su - oracle sqlplus / as sysdba alter user system identified by Test6530 show pdbs
9. 客戶端連接測試