ORA-00845: MEMORY_TARGET not supported on this system

本文解决在Oracle RHL4环境下遇到的Memory_TARGET参数不支持的问题,通过修改shm(系统共享内存)的大小来解决Oracle启动报错ORA-00845: MEMORY_TARGET not supported on this system。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

在RHL4的Oralce11:startup时报错:

SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system

官方解释:

ORA-00845: MEMORY_TARGET not supported on this system

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.
 
意思是oracle SGA的大小超过了系统shm的大小,有两种解决方案:
1.修改shm的大小 .
2 修改SGA_MAX_SIZE的大小。
 
     建议修改shm,shm类似于Windows平台的虚拟内存,shm默认自动调节大小,大约是内存的一半。我的内存是1G,查看shm的大小是508M,而oralce默认的SGA大小是422M.因为shm的剩余空间是随着应用程序的变化而调节的,当 shm小于SAG,启动oracle就会出现此问题。

 

解决方案是自定义shm的大小,需要修改/etc/fstab文件:


[oracle@oracle11g ~]$ vi /etc/fstab

把文件中:

none                    /dev/shm                tmpfs   defaults        0 0

修改为:

none                    /dev/shm                tmpfs   defaults,size=10G       0 0

然后保存退出,重新挂载shm

[oracle@oracle11g ~]$ umount /dev/shm

[oracle@oracle11g ~]$ mount /dev/shm

查看shm大小

[oracle@oracle11g ~]$ df -h |grep shm

none                  1.0G  308M  200M 30% /dev/shm

 

重新启动oracle,OK!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值