Occasionally I have come across instances where during the process of migrating the virtual machine, something gets messed up and starting Oracle results in the following error:
MEMORY_TARGET NOT SUPPORTED
or
SHARED_MEMORY Realm does not exist
Luckily, it is a fairly straightforward fix.
- Login as root user
-
sudo su
- Enter ‘cangetin’ as password
-
- Change the size of /dev/shm
-
mount -o remount,size=4G /dev/shm
-
- Make the change permanent for next time
- Install gedit to edit the file:
yum install gedit -y
-
gedit /etc/fstab
- Add the following line to the end of the file
-
tmpfs /dev/shm tmpfs size=4g 0 0
- Select save
- Install gedit to edit the file:
- Login as oracle user
-
su oracle
-
- Login to SQL*Plus
-
sqlplus / as sysdba
-
- Startup the database
-
SQL> STARTUP
-
- Exit back to the student user.