您的位置:首页 > 其它

ORA-00845: MEMORY_TARGET not supported on this system

2013-01-03 16:34 495 查看
再一次手工对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

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: