ORA-00845: MEMORY_TARGET not supported on this system

官方解释:
[oracle@centos6 ~]$ oerr ora 00845
00845, 00000, "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.

手工建库时出现了这个错误:

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

oracle安装文档里有这样的一段说明:

Starting with Oracle Database 11g, the Automatic Memory Management feature requires more shared memory (/dev/shm)and file descriptors. The shared memory should be sized to be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on that computer.

简单的说,MEMORY_MAXTARGET和MEMORY_TARGET的值不能大于共享内存的大小。


下面是报错的安装环境:

[oracle@centos6 ~]$ df -h /dev/shm/
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           935M   72K  935M   1% /dev/shm
[oracle@centos6 dbs]$ cat initorcl.ora | grep 'memory'
memory_target=1G

共享内存为935,memory_target为1G,果然是这个问题


接下里可以改变初始化参数,也可以用下面的命令增大共享内存,使之比需要设置的memory_target的值更大

[root@centos6 ~]# mount -t tmpfs shmfs -o size=1G /dev/shm
[root@centos6 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3        36G   20G   14G  60% /
tmpfs           1.0G     0  1.0G   0% /dev/shm
/dev/sda1        97M   34M   59M  37% /boot

[root@centos6 ~]# vim /etc/fstab
tmpfs                   /dev/shm                tmpfs   defaults,size=1G
注意:一定要同时修改配置文件,不然重启之后参数就会丢失,修改是无效的

接下来即可正常启动



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值