Increase /dev/shm tmpfs on RHEL/CentOS/OEL 7

Assalamu’alaikum Wr. Wb.
Oracle database uses /dev/shm for its memory target allocation. So, if space of /dev/shm is running out to allocate memory_target, Oracle will failed to startup and shown ORA-00845: MEMORY_TARGET not supported on this system. By default, CentOS 7.4.1708 as my Oracle DB platform allocate only 1.4GB /dev/shm. So I have to increase /dev/shm permanently for bigger memory_target. Sure, it is different way from RHEL/CentOS/OEL 6.

Deault tmpfs
Deault tmpfs

It is easy, I create shell script to remount the /dev/shm, give it executable permission, and put it into crontab so that remount for everystartup. You can also run mount -o remount,size=2g /dev/shm on the fly. But I didn’t it, after all done I reboot the OS to make sure my shell script and crontab running well šŸ™‚

Shell script and crontab
Shell script and crontab

Now check the /dev/shm and … my /dev/shm is 2GB.

/dev/shm increased
/dev/shm increased

Good luck šŸ™‚

Wassalamu’alaikum šŸ™‚


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s