以下环境使用云服务器 CentOS 7.6 ,4C8G进行安装配置
参考文档
一、下载安装介质
访问 https://edelivery.oracle.com/并获取下载地址
同意许可后
将wget.sh放到服务器上,并将
$WGET --secure-protocol=auto --save-cookies="$COOKIE_FILE" --keep-session-cookies --http-user "$SSO_USERNAME" --ask-password "https://edelivery.oracle.com/osdc/cliauth" -O /dev/null 2>> "$LOGFILE"
修改为
$WGET --secure-protocol=auto --save-cookies="$COOKIE_FILE" --keep-session-cookies --http-user "$SSO_USERNAME" --ask-password "https://edelivery.oracle.com/osdc/cliauth"
否则会有错误。
二、安装oracle-database-preinstall-19c
参考文档
三、配置环境准备安装
1、Oracle目录
mkdir -p /u01/app/oraInventory mkdir -p /u01/app/oracle/product/19.3.0/dbhome_1 chown -R oracle:oinstall /u01/app/oracle #解压 unzip -q V982063-01.zip -d /u01/app/oracle/product/19.3.0/dbhome_1
2、修改用户环境变量
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/19.3.0/dbhome_1 export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
3、swap分区
dd if=/dev/zero of=/root/swapfile bs=1M count=8192 mkswap /root/swapfile swapon /root/swapfile #添加开机自动挂载 vim /etc/fstab /root/swapfile swap swap defaults 0 0
4、修改响应文件
下载响应文件
vim /u01/app/oracle/product/19.3.0/dbhome_1/install/response/db_install.rsp oracle.install.option=INSTALL_DB_SWONLY UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/u01/app/oraInventory ORACLE_HOME=/u01/app/oracle/product/19.3.0/dbhome_1 ORACLE_BASE=/u01/app/oracle oracle.install.db.InstallEdition=EE oracle.install.db.OSDBA_GROUP=dba oracle.install.db.OSBACKUPDBA_GROUP=dba oracle.install.db.OSDGDBA_GROUP=dba oracle.install.db.OSKMDBA_GROUP=dba oracle.install.db.OSRACDBA_GROUP=dba
5、安装
./runInstaller -ignorePrereq -waitforcompletion -silent -responseFile /u01/app/oracle/product/19.3.0/dbhome_1/install/response/db_install.rsp Launching Oracle Database Setup Wizard... [WARNING] [INS-13014] Target environment does not meet some optional requirements. CAUSE: Some of the optional prerequisites are not met. See logs for details. installActions2019-09-22_03-54-32PM.log ACTION: Identify the list of failed prerequisite checks from the log: installActions2019-09-22_03-54-32PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually. The response file for this session can be found at: /u01/app/oracle/product/19.3.0/dbhome_1/install/response/db_2019-09-22_03-54-32PM.rsp You can find the log of this install session at: /tmp/InstallActions2019-09-22_03-54-32PM/installActions2019-09-22_03-54-32PM.log As a root user, execute the following script(s): 1. /u01/app/oraInventory/orainstRoot.sh 2. /u01/app/oracle/product/19.3.0/dbhome_1/root.sh Execute /u01/app/oraInventory/orainstRoot.sh on the following nodes: #root用户执行 /u01/app/oraInventory/orainstRoot.sh /u01/app/oracle/product/19.3.0/dbhome_1/root.sh