OEL7.6安裝Oracle Database 19C(VERSION 19.3.0.0)


1.eDelivery中下載Oracle Database 19C和Oel的安裝介質,並安裝好操作系統

2.安裝Oracle環境准備工具

環境准備工具會自動完成用戶和用戶組的創建、系統參數配置、依賴包檢查與安裝,實現一鍵准備好oracle安裝環境

[root@localhost ~]# yum -y install oracle-database-preinstall-19c
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-preinstall-19c.x86_64 0:1.0-1.el7 will be installed
--> Processing Dependency: compat-libcap1 for package: oracle-database-preinstall-19c-1.0-1.el7.x86_64
--> Processing Dependency: ksh for package: oracle-database-preinstall-19c-1.0-1.el7.x86_64

(many more lines suppressed)

Installed:
  oracle-database-preinstall-19c.x86_64 0:1.0-1.el7                                                

Dependency Installed:
  compat-libcap1.x86_64 0:1.10-7.el7              compat-libstdc++-33.x86_64 0:3.2.3-72.el7        
  glibc-devel.x86_64 0:2.17-260.0.17.el7_6.6      glibc-headers.x86_64 0:2.17-260.0.17.el7_6.6     
  kernel-headers.x86_64 0:3.10.0-957.21.3.el7     ksh.x86_64 0:20120801-139.0.1.el7                
  libaio-devel.x86_64 0:0.3.109-13.el7            libstdc++-devel.x86_64 0:4.8.5-36.0.1.el7_6.2    

Dependency Updated:
  glibc.x86_64 0:2.17-260.0.17.el7_6.6           glibc-common.x86_64 0:2.17-260.0.17.el7_6.6       
  libstdc++.x86_64 0:4.8.5-36.0.1.el7_6.2       

Complete!
[root@localhost ~]# 

(備注:如果是在centos或者rhel等沒有oracle的yum源上要先設置源

wget http://public-yum.oracle.com/public-yum-ol7.repo -O /etc/yum.repos.d/public-yum-ol7.repo

wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

或者直接這樣

yum install -y https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

3.創建目錄

[root@localhost ~]# mkdir -p /u01/app/oraInventory
[root@localhost ~]# mkdir -p /u01/app/oracle/product/19.3.0/dbhome_1
[root@localhost ~]# chown -R oracle: /u01/app/oraInventory
[root@localhost ~]# chown -R oracle: /u01/app/oracle
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ unzip -q /stage/db/V982063-01.zip -d /u01/app/oracle/product/19.3.0/dbhome_1/
[oracle@localhost ~]$ 

4.開始安裝

[oracle@localhost ~]$ unzip -q /stage/db/V982063-01.zip -d /u01/app/oracle/product/19.3.0/dbhome_1/
[oracle@localhost ~]$ export ORACLE_HOME=/u01/app/oracle/product/19.3.0/dbhome_1
[oracle@localhost ~]$ export DISPLAY=10.0.0.1:0.0
[oracle@localhost ~]$ /u01/app/oracle/product/19.3.0/dbhome_1/runInstaller 

選擇”Create and configure a single instance database”image

選擇”Server class”來獲得更多高級選項image選擇企業版image選擇oracle base目錄image選擇inventory目錄image選擇一般數據庫image填寫數據庫名,保持orcl不變image選擇內存大小image選擇數據文件存訪路徑image不用oemimage測試用途,不用恢復區image設置數據庫密碼image查用戶和用戶組image輸入系統密碼,自動執行root腳本image

預檢查image點擊安裝image

安裝開始image

點擊yes以繼續,讓安裝程序自動執行root腳本

2TU4[4WQZS{`JW5)6IGI[CJ

E259X)%$5)G`ZZXY19KJZ0G

安裝完成,有個bug,我沒選oem,結果這個提示oem地址是啥毛病,不管了. image測試下
[oracle@localhost ~]$ export ORACLE_SID=orcl
[oracle@localhost ~]$ export ORACLE_HOME=/u01/app/oracle/product/19.3.0/dbhome_1
[oracle@localhost ~]$ export ORACLE_BASE=/u01/app/oracle/
[oracle@localhost ~]$ export PATH=$PATH:$ORACLE_HOME/bin
[oracle@localhost ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jul 25 17:59:11 2019
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> show pdbs;

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 ORCLPDB                        READ WRITE NO
SQL> 

可以玩玩19C有啥新特性了

注意從Oracle 18c開始,在安裝數據庫軟件時,需要把壓縮文件解壓到 $ORACLE_HOME 路徑下,在此目錄下運行 ./runInstaller

保存下相應文件,以備后查

[root@localhost db]# cat db.rsp |grep -v ^#|grep -v ^$
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0
oracle.install.option=INSTALL_DB_AND_CONFIG
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
ORACLE_BASE=/u01/app/oracle
      
                               
oracle.install.db.InstallEdition=EE
oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSOPER_GROUP=oper
oracle.install.db.OSBACKUPDBA_GROUP=backupdba
oracle.install.db.OSDGDBA_GROUP=dgdba
oracle.install.db.OSKMDBA_GROUP=kmdba
oracle.install.db.OSRACDBA_GROUP=racdba
oracle.install.db.rootconfig.executeRootScript=true
oracle.install.db.rootconfig.configMethod=ROOT
oracle.install.db.rootconfig.sudoPath=
oracle.install.db.rootconfig.sudoUserName=
oracle.install.db.CLUSTER_NODES=
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.config.starterdb.globalDBName=orcl
oracle.install.db.config.starterdb.SID=orcl
oracle.install.db.ConfigureAsContainerDB=true
oracle.install.db.config.PDBName=orclpdb
oracle.install.db.config.starterdb.characterSet=AL32UTF8
oracle.install.db.config.starterdb.memoryOption=true
oracle.install.db.config.starterdb.memoryLimit=1471
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.password.ALL=
oracle.install.db.config.starterdb.password.SYS=
oracle.install.db.config.starterdb.password.SYSTEM=
oracle.install.db.config.starterdb.password.DBSNMP=
oracle.install.db.config.starterdb.password.PDBADMIN=
oracle.install.db.config.starterdb.managementOption=DEFAULT
oracle.install.db.config.starterdb.omsHost=
oracle.install.db.config.starterdb.omsPort=0
oracle.install.db.config.starterdb.emAdminUser=
oracle.install.db.config.starterdb.emAdminPassword=
oracle.install.db.config.starterdb.enableRecovery=false
oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/u01/app/oracle/oradata
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
oracle.install.db.config.asm.diskGroup=
oracle.install.db.config.asm.ASMSNMPPassword=
[root@localhost db]# 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM