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
目录
相关文章
|
1月前
|
Oracle 关系型数据库
oracle rac 手工安装补丁,不适用auto
oracle rac 手工安装补丁,不适用auto
35 3
|
Shell Linux
Rhel7安装RAC 11gR2时运行root.sh报错找不到ohas服务妙招
Rhel7安装RAC 11gR2时运行root.sh报错找不到ohas服务妙招
253 0
|
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.
1946 0
|
Oracle 关系型数据库 专有云
阿里专有云3.6.1版本云上rac安装节点驱逐问题
阿里专有云云上Oracle rac节点驱逐解决方案
2729 0
|
监控 数据库 数据安全/隐私保护
Cloud Control 13c 13.3安装(三) 监控 grid rac 状态
Cloud Control 13c 13.3 监控 grid rac 状态
2427 0
|
存储 SQL Oracle
请参考rhel7 安装 oracle 18c rac(03 dbca 建立数据库)
rhel7 安装 oracle 18c rac(01 grid软件安装) dbca 建立数据库。
3216 0
|
Oracle 关系型数据库 Linux
|
Oracle 关系型数据库 Unix
RAC swap 不足, 实例down --解决
在论坛上看到一个案例,觉得不错,分享一下 AIX RAC swap 不足, 实例down --解决os : aix 5.3 + hacmp 5.4.1db : 10.
994 0
|
1月前
|
存储 Oracle 关系型数据库
Oracle RAC:数据库集群的舞动乐章
【4月更文挑战第19天】Oracle RAC是Oracle提供的高可用性数据库解决方案,允许多个实例共享同一数据库,确保业务连续性和数据完整性。通过集群件和全局缓存服务实现服务器间的协调和通信。RAC提供高可用性,通过故障转移应对故障,同时提升性能,多个实例并行处理请求。作为数据管理员,理解RAC的架构和管理至关重要,以发挥其在数据管理中的最大价值。
|
1月前
|
存储 运维 Oracle
Oracle系列十八:Oracle RAC
Oracle系列十八:Oracle RAC