Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

  • Translate

  • It’s Me






  • My Certificates

  • Links

    My Acclaim Certification : Credly Profile
    My Oracle ACE Pro Profile

  • Achievements

    Awarded Top 100 Oracle Blogs from Worldwide - #RANK 39
  • VISITORS COUNT

  • Verified International Academic Qualification from World Education Service (WES)

    Verified International Academic Qualification from World Education Service (WES)

  • Jobs

Checking swap space: 0 MB available, 150 MB required. Failed or Configure the swap space

Posted by Mir Sayeed Hassan on June 19th, 2021

Checking swap space: 0 MB available, 150 MB required. Failed or Configure the swap space

Error log while installation.

[oracle@miroradb database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 36214 MB Passed
Checking swap space: 0 MB available, 150 MB required. Failed <<<<
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed

Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,
Continue? (y/n) [n] n
User Selected: No
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2021-06-16_02-03-20PM/installActions2021-06-16_02-03-20PM.log

First check the swap space assign in this server

[oracle@miroradb database]$ free -m
total    used      free      shared buff/cache available
Mem:      1837     113       83 12 1641           1546
Swap: 0 0 0
or 
#swapon -s

If it return “0”, It mean swap does not present

create a Swap file using the dd command as shown below

[root@miroradb ~]# sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB

4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB) copied, 18.922 s, 227 MB/s
[root@miroradb ~]# ls -lh /swapfile
-rw-r--r--. 1 root root 4.0G Jun 16 14:08 /swapfile

Provide the swap file the appropriate permissions

[root@miroradb ~]# sudo chmod 600 /swapfile

Format & activate the Swap file to be used.

[root@miroradb ~]# sudo mkswap /swapfile
Setting up swapspace version 1, size = 4194300 KiB
no label, UUID=11fa40b9-66d5-430f-b12b-6d4ac8c4eac0

Verify the swap file created on server

[root@miroradb ~]# swapon /swapfile

[root@miroradb ~]# swapon -s

Filename     Type     Size      Used     Priority
/swapfile    file    4194300      0        -2

[root@miroradb ~]# free -m total used free shared buff/cache available Mem: 1837 117 67 12 1653 1539 Swap: 4095 0 4095

To make it permanent. Update in to the /etc/fstab

vi /etc/fstab
/swapfile swap swap defaults 0 0

:wq

Verify any error:

[root@miroradb ~]# mount -a

Note:
- If your sever is test., try to reboot once & verify the swap allocated or schedule a minimal downtime for reboot.

Therefore the swap file is created., re-run the installation.

=====Hence tested & verified in our test env=====