现象
[oracle@odsa database]$ ./runInstaller -silent -force -noconfig -ignorePrereq \
> oracle.install.option=INSTALL_DB_SWONLY \
> 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=dba \
> oracle.install.db.OSDGDBA_GROUP=dba \
> oracle.install.db.OSKMDBA_GROUP=dba \
> oracle.install.db.OSRACDBA_GROUP=dba \
> oracle.install.db.CLUSTER_NODES=odsa,odsb \
> oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 164843 MB Passed
Checking swap space: 0 MB available, 150 MB required. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,
Exiting Oracle Universal Installer, log for this session can be found at /u01/app/oraInventory/logs/installActions2022-02-26_10-19-33PM.log
[oracle@odsa database]$ free -h
total used free shared buff/cache available
Mem: 251G 8.9G 215G 648M 27G 240G
Swap: 0B 0B 0B
解决
需要配置swap空间,安装完成后,可以删除swap空间“swapoff /swapfile”。
[root@odsa ~]# dd if=/dev/zero of=/swapfile bs=1024 count=512k
mkswap /swapfile524288+0 records in
524288+0 records out
536870912 bytes (537 MB) copied, 1.0322 s, 520 MB/s
[root@odsa ~]# mkswap /swapfile
Setting up swapspace version 1, size = 524284 KiB
no label, UUID=dca510b1-e605-4b1a-9934-1bac426f2134
[root@odsa ~]# swapon /swapfile
swapon: /swapfile: insecure permissions 0644, 0600 suggested.
[root@odsa ~]# free -h
total used free shared buff/cache available
Mem: 251G 8.5G 229G 656M 13G 241G
Swap: 511M 0B 511M
[oracle@odsa database]$ ./runInstaller -silent -force -noconfig -ignorePrereq -ignorePrereqFailure \
> oracle.install.option=INSTALL_DB_SWONLY \
> 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=dba \
> oracle.install.db.OSDGDBA_GROUP=dba \
> oracle.install.db.OSKMDBA_GROUP=dba \
> oracle.install.db.OSRACDBA_GROUP=dba \
> oracle.install.db.CLUSTER_NODES=odsa,odsb \
> oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
Starting Oracle Universal Installer...
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 164330 MB Passed
Checking swap space: must be greater than 150 MB. Actual 511 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2022-02-26_10-25-17PM. Please wait ...[oracle@odsa database]$ You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2022-02-26_10-25-17PM.log
[oracle@odsa database]$
[oracle@odsa database]$
[oracle@odsa database]$ The installation of Oracle Database 12c was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2022-02-26_10-25-17PM.log' for more details.
The Cluster Node Addition of /u01/app/oracle/product/12.2.0/dbhome_1 was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2022-02-26_10-25-17PM.log' for more details.
As a root user, execute the following script(s):
1. /u01/app/oracle/product/12.2.0/dbhome_1/root.sh
Execute /u01/app/oracle/product/12.2.0/dbhome_1/root.sh on the following nodes:
[odsa, odsb]
Successfully Setup Software.
删除swap:
swapoff /swapfile
rm -rf /swapfile
有关swap的更多内容请参考:https://www.xmmup.com/linuxzhongdejiaohuanfenquswap.html
其它办法
也可以添加如下参数:-IgnoreSysPreReqs -ignorePrereq -showProgress
/soft/database/runInstaller -silent -force -noconfig -IgnoreSysPreReqs -ignorePrereq -showProgress \
oracle.install.option=INSTALL_DB_SWONLY \
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=dba \
oracle.install.db.OSDGDBA_GROUP=dba \
oracle.install.db.OSKMDBA_GROUP=dba \
oracle.install.db.OSRACDBA_GROUP=dba \
oracle.install.db.CLUSTER_NODES=oarac1,oarac2 \
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE \
ORACLE_HOSTNAME=oarac1