rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”

简介: rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”

现象

[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
目录
相关文章
|
2月前
|
Oracle 关系型数据库
oracle rac 手工安装补丁,不适用auto
oracle rac 手工安装补丁,不适用auto
25 3
|
Shell Linux
Rhel7安装RAC 11gR2时运行root.sh报错找不到ohas服务妙招
Rhel7安装RAC 11gR2时运行root.sh报错找不到ohas服务妙招
239 0
|
Oracle 关系型数据库 Linux
|
Oracle 关系型数据库 Shell
RHEL 7.6 安装 Oracle 18c RAC
RHEL 7.6 安装 Oracle 18c RAC第一部分 安装规划 虚拟环境 VirtualBox 6.0 OS 版本 Red Hat Enterprise Linux Server release 7.
1930 0
|
Oracle 关系型数据库 专有云
阿里专有云3.6.1版本云上rac安装节点驱逐问题
阿里专有云云上Oracle rac节点驱逐解决方案
2716 0
|
监控 数据库 数据安全/隐私保护
Cloud Control 13c 13.3安装(三) 监控 grid rac 状态
Cloud Control 13c 13.3 监控 grid rac 状态
2413 0
|
存储 SQL Oracle
请参考rhel7 安装 oracle 18c rac(03 dbca 建立数据库)
rhel7 安装 oracle 18c rac(01 grid软件安装) dbca 建立数据库。
3197 0
|
Oracle 关系型数据库 Linux
|
Oracle 关系型数据库 数据库
|
Oracle 关系型数据库 数据格式
11gr2 RAC安装INS-35354问题一例
转自:http://www.askmaclean.com/archives/11gr2-rac安装ins-35354问题一例.html 今天在安装一套11.2.0.2 RAC数据库时出现了INS-35354的问题: 因为之前已经成功安装了11.
1018 0