ora-00845 MEMORY_TARGET not supported on this system

--先制造报错
[oracle@ora11 ~]$ ipcs
------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0xd60aae9c 393216     oracle    660        4096       0
------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x10a2e564 98304      oracle    660        154
------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages
[oracle@ora11 ~]$ ipcrm -m 393216
[oracle@ora11 ~]$ exit
exit
SQL> shutdown abort
ORACLE instance shut down.
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
SQL>

log:(alert_ora11.log)
Thu Jan 26 15:32:42 2012
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 499122176 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 202989568 and used is 327069696 bytes. Ensure that the mount point is /dev/shm for this directory.
memory_target needs larger /dev/shm
499122176/1024/1024/1024=476M(这是实例启动的最小需求!)
ipsc前(ipcrm -m 393216)
[root@ora11 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              18G  9.4G  6.9G  58% /
tmpfs                 506M     0  506M   0% /dev/shm
从可以看出ipsc前(ipcrm -m 393216)tmpfs 是506M大于476M,所以实例可以起来。
ipcs后(ipcrm -m 393216)
[oracle@ora11 ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              18G  9.4G  6.9G  58% /
tmpfs                 506M  312M  194M  62% /dev/shm
从可以看出ipsc前(ipcrm -m 393216)tmpfs 是194M小于476M,所以实例可以起不来。
~~~~~~~~~~~~~~~~~~~~~~~~处理~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[oracle@ora11 ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              18G  9.4G  6.9G  58% /
tmpfs                 506M  312M  194M  62% /dev/shm
[oracle@ora11 ~]$
[oracle@ora11 ~]$
[oracle@ora11 ~]$ su - root
Password:
[root@ora11 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              18G  9.4G  6.9G  58% /
tmpfs                 506M  312M  194M  62% /dev/shm
[root@ora11 ~]# vi /etc/fstab
~~~~~~~
[oracle@ora11 ~]$ vi /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
#tmpfs                   /dev/shm                tmpfs   defaults        0 0
tmpfs           /dev/shm        tmpfs   defaults,size=500M              0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda2         swap                    swap    defaults        0 0
~~~~~~~
[root@ora11 ~]# umount /dev/shm/
[root@ora11 ~]# mount /dev/shm/
[root@ora11 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              18G  9.4G  6.9G  58% /
tmpfs                 500M     0  500M   0% /dev/shm
[root@ora11 ~]# su - oracle
[oracle@ora11 ~]$ exit
logout
[root@ora11 ~]# su - oracle
[oracle@ora11 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jan 26 15:37:49 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area  497995776 bytes
Fixed Size                  1337464 bytes
Variable Size             360712072 bytes
Database Buffers          130023424 bytes
Redo Buffers                5922816 bytes
Database mounted.
Database opened.
SQL>

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28278387/viewspace-746779/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28278387/viewspace-746779/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值