Get the App
SLTechnology News&Howtos  ›  Database  › 

What if there is insufficient swap when installing oracle12c

Shulou Source: shulou.com Published: 2022-05-31 18:35:06 10月05日 Update

This article mainly introduces "how to do insufficient swap when installing oracle12c". In daily operation, I believe that many people have doubts about how to do insufficient swap when installing oracle12c. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the question of "how to do insufficient swap when installing oracle12c". Next, please follow the editor to study!

The free command displays the amount of memory used on the current system

1. View current memory

[root@happy] # free-m

Total used free shared buffers cached

Mem: 1826 1706 120 8 0 531

-/ + buffers/cache: 1174

Swap: 2063 2 2061

2. Create a file to swap the partition: increase the swap partition by 2G, and count is equal to the desired block size.

[root@happy ~] # dd if=/dev/zero of=/home/swap bs=block_size count=number_of_block

Dd: invalid number 'block_size'

[root@happy ~] # dd if=/dev/zero of=/home/swap bs=1024 count=2048000

2048000000000 records in

2048000000000 records out

2097152000 bytes (2.1 GB) copied, 10.0768 s, 208 MB/s

3. Set up swap partition files

[root@happy ~] # mkswap / home/swap

Setting up swapspace version 1, size = 2047996 KiB

No label, UUID=2a8e8c81-fe4b-4111-ae60-715715cdb400

4. Enable swapping partition files immediately

[root@happy ~] # swapon / home/swap

Swapon: / home/swap: insecure permissions 0644, 0600 suggested.

5. Check again

[root@happy] # free-m

Total used free shared buffers cached

Mem: 1826 1741 85 7 0 742

-/ + buffers/cache: 998 827

Swap: 4063 81 3982

6. If you want to make boot self-boot, you want to modify the file / etc/fastb and modify the swap line.

#

# / etc/fstab

# Created by anaconda on Mon May 14 16:09:52 2018

#

# Accessible filesystems, by reference, are maintained under'/ dev/disk'

# See man pages fstab (5), findfs (8), mount (8) and/or blkid (8) for more info

#

/ dev/mapper/rhel-root / xfs defaults 1 1

UUID=6fef81a7-d81f-4a22-8795-f714054edb2e / boot xfs defaults 1 2

/ home/swap swap swap defaults 0 0

/ mvp/RHEL-server-7.0-x86_64-LinuxProbe.Com.iso / mnt/cdrom iso9660 defaults,ro 0 0

At this point, the study on "what to do if swap is insufficient when installing Oracle 12c" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: What to do files learning memory size more help practical next usage again commands articles methods theory knowledge articles systems websites materials Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Xiaomi Docker Shulou Information OPPO Reno