How to force oracle accept insufficient swap size? I want to install Oracle 12c on Oracle Linux 6.10 with 5.7803GB swap size.

But one of prerequisites checked failed:


INFO: *********************************************
INFO: Swap Size: This is a prerequisite condition to test whether sufficient total swap space is available on the system.
INFO: Severity:IGNORABLE
INFO: OverallStatus:VERIFICATION_FAILED
INFO: -----------------------------------------------


INFO: ERROR: [Result.addErrorDescription:703]  PRVF-7573 : Sufficient swap size is not available on node "olhost" [Required = 7.8167GB (8196368.0KB) ; Found = 5.7803GB (6061052.0KB)]
INFO: ERROR: [Result.addErrorDescription:714]  PRVF-7573 : Sufficient swap size is not available on node "olhost" [Required = 7.8167GB (8196368.0KB) ; Found = 5.7803GB (6061052.0KB)]
INFO: ERROR: [Result.addErrorDescription:714]  PRVF-7573 : Sufficient swap size is not available on node "olhost" [Required = 7.8167GB (8196368.0KB) ; Found = 5.7803GB (6061052.0KB)]
INFO: INFO: [Task.perform:819]
TaskSwapSize:Swap Size[CHECK_SWAP_SIZE]:TASK_SUMMARY:FAILED:IGNORABLE:VERIFICATION_FAILED:Total time taken [58 Milliseconds]
          ERRORMSG(olhost): PRVF-7573 : Sufficient swap size is not available on node "olhost" [Required = 7.8167GB (8196368.0KB) ; Found = 5.7803GB (6061052.0KB)]



How to force oracle to use smaller swap size instead of required?
You possibly can't, really, unless there is a documented option for that. As the error is marked as "Severity:IGNORABLE" it is not unlikely that there will be an option to ignore "ignorable" warnings and proceed. Check the installation documentation for this information.

If not, and the problem is that you have a fixed swap partition/volume that you cannot increase because there is no space available to grow it into, you could temporarily add more swap by adding a swap file with something like:

dd if=/dev/zero of=/tmp/additionalswap bs=1048576 count=2100
chmod 600 /tmp/additionalswap
mkswap /tmp/additionalswap
swapon /tmp/additionalswap


before the installation process. This assumes you have sufficient space in the filesystem /tmp is found in, choose another location if not.

Once done, turn the extra swap space off with swapoff /tmp/additionalswap and remove the file.