当前位置:数据库 > Oracle >>

[Oracle] ORA-00845: MEMORY_TARGET not supported on this system解决

[Oracle] ORA-00845: MEMORY_TARGET not supported on this system解决
 
Oracle 11g在启动时报错:
[sql] 
SYS@TEST16> startup  
ORA-00845: MEMORY_TARGET not supported on this system  

 

这是因为你设置了MEMORY_TARGET这个参数,这个特性需要用到/dev/shm共享文件系统,而且要求/dev/shm必须大于MEMORY_TARGET,如果/dev/shm比MEMORY_TARGET小就会报错。
[plain] 
[root@lx16 ~]# df -h|grep /dev/shm  
Filesystem            Size  Used Avail Use% Mounted on  
tmpfs                 3.9G     0  3.9G   0% /dev/shm  

 

从什么可以知道当前系统的/dev/shm的大小为3.9G,而我的MEMORY_TARGET为4G,因此增加/dev/shm的大小即可:
[plain] 
[root@lx16 ~]# mount -t tmpfs shmfs -o size=8g /dev/shm  
[root@lx16 ~]# df -h |grep /dev/shm  
shmfs                 8.0G     0  7.0G   0% /dev/shm  

 

这样再重新启动Oracle就可以了。
为了确保操作系统重启之后能生效,需要修改/etc/fstab文件:
[plain] 
tmpfs                   /dev/shm                tmpfs   defaults size=8g       0 0  

 


Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,