【oracle案例】ORA-00845

1.1.   ORA-00845

ORA-00845: MEMORY_TARGET not supported onthis system

00845, 00000, "MEMORY_TARGET notsupported on this system"

// *Cause: The MEMORY_TARGET parameter wasnot supported on this operating system or /dev/shm was not sized correctly onLinux.

// *Action: Refer to documentation for alist of supported operating systems. Or, size /dev/shm to be at least theSGA_MAX_SIZE on each Oracle instance running on the system.

 

报错信息

在ASM环境中,启动oracle实例的时候报错

SQL> startup

ORA-00845: MEMORY_TARGET not supported onthis system

 

查看日志

Sun Mar 30 14:28:07 2014

Adjusting the default value of parameterparallel_max_servers

from 640 to 185 due to the value ofparameter processes (200)

Starting ORACLE instance (normal)

WARNING: You are trying to use theMEMORY_TARGET feature. This feature requires the /dev/shm file system to bemounted for at least 19327352832 bytes. /dev/shm is either not mounted or ismounted with available space less than this size. Please fix this so thatMEMORY_TARGET can work as expected. Current available is 16536903680 and usedis 288894976 bytes. Ensure that the mount point is /dev/shm for this directory.

memory_target needs larger /dev/shm

 

查看/dev/shm分区情况

Filesystem    Type   Size  Used Avail Use% Mounted on

tmpfs       tmpfs     16G   14.2G 1.8G  89% /dev/shm

 

调整/dev/shm分区大小:

# vim /etc/fstab

tmpfs                                    /dev/shm                tmpfs   defaults,size=20G        0 0

 

查看使用/dev/shm分区的进程:

#lsof /dev/shm  -- ASM实例在使用

 

关闭ASM实例(已经确认可以关闭):

# sqlplus -S / as sysasm

-- 检查当前连接的会话

selectusername,status,server,type,program,action,logon_time,state from v$session;

-- 确认可以关闭ASM实例

shutdown normal

 

重新加载/dev/shm分区:

# mount -o remount /dev/shm

 

查看/dev/shm分区大小:

# df -hT |grep shm

tmpfs       tmpfs     20G   19G 1.8G  92% /dev/shm

 

启动Oracle实例:

# id

oracle

# sqlplus -S / as sysdba

startup

启动成功。

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值