查询到的原因如下:
// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm was not sized correctly on Linux.
// *Action: Refer to documentation for a list of supported operating systems. Or, size /dev/shm to be at least the SGA_MAX_SIZE on each Oracle instance running on the system.
系统的虚拟内存小于sga的大小,既然知道原因了,就可以解决了
设置sga的大小,修改SGA_MAX_SIZE的大小
alter system set sga_max_size=xxxM
不过建议修改虚拟内存。在windows上我的电脑右击->高级->性能设置->高级->更改
在linux上是修改/dev/shm的大小,
修改vi /etc/fstab
[root@abc ~]# more /etc/fstab LABEL=/ / ext3 defaults 1 1 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=62 0 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda2 swap swap defaults 0 0 You have new mail in /var/spool/mail/root
在tmpfs哪行修改成
tmpfs /dev/shm tmpfs defaults,size=1G 0 0
保存退出后;重新加载一下
umount /dev/shm
mount /dev/shm
再次查看df -k /dev/shm
或者是执行一下操作:
[root@abc ~]# mount -o remount,size=4G /dev/shm