ORA-00845: MEMORY_TARGET not supported on this system

本文介绍了解决Oracle 11g数据库启动时遇到的MEMORY_TARGET不支持的问题,通过调整/tmpfs文件系统大小成功启动数据库。

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

再一次手工对11g数据库手工建库时报错

SQL> startup nomount pfile=?/dbs/initprod.ora
ORA-00845: MEMORY_TARGET not supported on this system

查看告警日志如下:

Wed Jan 02 21:49:59 2013
Starting ORACLE instance (normal)

WARNING: You are trying to use the MEMORY_TARGET feature. This feature requires the /dev/shm file system to be mounted for at least 5242880
00 bytes. /dev/shm is either not mounted or is mounted with available space less than this size. Please fix this so that MEMORY_TARGET can
work as expected. Current available is 460648448 and used is 0 bytes. Ensure that the mount point is /dev/shm for this directory.
memory_target needs larger /dev/shm

显示是tmpfs文件过小,MEMORY_TARGET 参数要小于等于tmpfs的大小,后来修改tmpfs解决问题!

[root@ora11g ~]# vi /etc/fstab

/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults,size=1024m      0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

[root@ora11g ~]# mount -o remount /dev/shm

[root@ora11g ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       18G  9.3G  7.2G  57% /
/dev/sda1              99M   14M   81M  15% /boot
tmpfs                 1.0G     0  1.0G   0% /dev/shm
none                  440M  104K  440M   1% /var/lib/xenstored

[root@ora11g ~]# su - oracle
[oracle@ora11g ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 2 21:54:58 2013

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL>
SQL>
SQL> startup nomount pfile=?/dbs/initprod.ora
ORACLE instance started.

Total System Global Area  523108352 bytes
Fixed Size                  1337632 bytes
Variable Size             314574560 bytes
Database Buffers          201326592 bytes
Redo Buffers                5869568 bytes
SQL>

Ok

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值