oracle11g memory_target,oracle11g要求在操作系统层设定共享内存/dev/shm,且大于MEMORY_TARGET...

oracle11gR2:

SQL> startup nomount

ORA-00845: MEMORY_TARGET not supported on this system

告警日志:

WARNING: You are trying to use the MEMORY_TARGET feature. This feature requires the /dev/shm file system to be mounted for at least 788529152 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 517730304 and used is 464449536 bytes. Ensure that the mount point is /dev/shm for this directory.

memory_target needs larger /dev/shm

google:

11g特性的内存管理需要用到/dev/shm共享文件系统,且要求/dev/shm大于 TARGET_MEMORY,否则会报错。

[root@mosdb ~]# mount -t tmpfs shmfs -o size=3g /dev/shm

[root@mosdb ~]#

写入到fstab中:

vi /etc/fstab 增加如下:

shm /dev/shm tmpfs size=2g 0 0

#mount shm

[root@mosdb etc]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

37G 17G 18G 49% /

/dev/sda1 99M 13M 81M 14% /boot

shm 2.0G 0 2.0G 0% /dev/shm

在启动数据库:(可见内存加载成功)

SQL> startup nomount;

ORACLE instance started.

Total System Global Area 786759680 bytes

Fixed Size 1339400 bytes

Variable Size 528486392 bytes

Database Buffers 251658240 bytes

Redo Buffers 5275648 bytes

SQL>

[@more@]

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值