ORA-00845: MEMORY_TARGET not supported on this system报错解决

数据库版本:11.2.0.2

现象

Oracle 11g数据库修改pfile参数后启动数据库报错ora-00845

SQL> startup

ORA-00845: MEMORY_TARGET not supported on this system

查找资料后发现问题如下,见metalinikID 460506.1

在oracle 11g中新增的内存自动管理的参数MEMORY_TARGET,它能自动调整SGA和PGA,这个特性需要用到/dev/shm共享文件系统,而且要求/dev/shm必须大于MEMORY_TARGET,如果/dev/shm比MEMORY_TARGET小就会报错

解决方案

1.初始化参数MEMORY_TARGET或MEMORY_MAX_TARGET不能大于共享内存(/dev/shm),为了解决这个问题,可以增大/dev/shm

如:

# mount -t tmpfs shmfs -o size=7g /dev/shm

2.为了确保操作系统重启之后能生效,需要修改/etc/fstab文件

shmfs /dev/shm tmpfs size=7g 0

3.如果/dev/shm没有挂载也会报上面的错,所认需要确保已经挂载

[email protected] ~]$ df -h

……

tmpfs                16G 8.9G 7.2G 56% /dev/shm

……

下面为一次操作的记录

[[email protected] ~]# cat /etc/fstab | grep tmpfs

tmpfs                  /dev/shm              tmpfs  defaults,size=8g      0 0

[[email protected] ~]#

[[email protected] ~]# mount -o remount,size=16G /dev/shm

[[email protected] ~]#

[[email protected] ~]# cat /etc/fstab | grep tmpfs

tmpfs                  /dev/shm              tmpfs  defaults,size=8g      0 0

[[email protected] ~]# vi /etc/fstab

/dev/rootvg/LogVol02  /                      ext3  defaults      1 1

/dev/rootvg/LogVol01  /tmp                  ext3  defaults      1 2

/dev/rootvg/lvol0    /ebao                  ext3  defaults      1 2

/dev/rootvg/lvol1    /backup                ext3  defaults      1 2

LABEL=/boot            /boot                  ext3  defaults      1 2

tmpfs                  /dev/shm              tmpfs  defaults,size=16g      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/rootvg/LogVol00  swap                  swap  defaults      0 0

"/etc/fstab" 10L, 769C written

[[email protected] ~]# df -h|grep shm

tmpfs                16G    0  16G  0% /dev/shm

SQL> startup

ORACLE instance started.

Total System Global Area 9420095488 bytes

Fixed Size                2236248 bytes

Variable Size          2315255976 bytes

Database Buffers        7046430720 bytes

Redo Buffers              56172544 bytes

Database mounted.

Database opened.

SQL> exit

时间: 2024-11-05 22:40:33

ORA-00845: MEMORY_TARGET not supported on this system报错解决的相关文章

Oracle11g 启动报错ORA-00845: MEMORY_TARGET not supported on this system报错解决

ORA-00845: MEMORY_TARGET not supported on this system报错解决 Oracle启动报错 ORA-00845: MEMORY_TARGET not supported on this system报错解决 SQL> startup ORA-00845: MEMORY_TARGET not supported on this system 查看原本大小 [[email protected] oracle]# df -h|grep shm tmpfs

ORA-00845 : MEMORY_TARGET not supported on this system(调大数据库内存无法启动)

问题描述:调大数据库内存后,启动数据库报 ORA-00845 : MEMORY_TARGET not supported on this system . -- 调大数据库内存后,数据库启动报错[[email protected] bin]# ./srvctl start database -d jcdydbPRCR-1079 : Failed to start resource ora.jcdydb.dbCRS-5017: The resource action "ora.jcdydb.db

oracle启动报错ORA-00845: MEMORY_TARGET not supported on this system解决办法

oracle启动报错ORA-00845: MEMORY_TARGET not supported on this system 原因可能:ORACLE MEMORY_TARGET参数设置超过了oracle服务器本身内存.或超过了现在服务器空闲内存(就是oracle启动时无法获取设置的内存) eg: oracle version:11gR2 OS version:RedHat 6.4企业版 服务器:虚拟机 分析步骤: 1.查看当前 MEMORY_TARGET参数的值为*.memory_target

ORA-00845: MEMORY_TARGET not supported on this system??????

OS version : Red Hat Enterprise Linux Server release 5.5 (Tikanga) database version : Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production PL/SQL Release 11.2.0.1.0 - Production CORE    11.2.0.1.0      Production TNS for Linux: Vers

再说ORA-00845: MEMORY_TARGET not supported on this system

网上很多关于这个错误的文章,有些还引用了Oracle文档中的说明. Setting Memory Target at Instance Startup on Linux Starting with Oracle Database 11g Release 1 (11.1), Oracle provides the option of automatically managing SGA and PGA with a combined MEMORY_TARGETparameter without h

Oracle study之--“ORA-00845: MEMORY_TARGET not supported on this system"错误

Oracle study之--"ORA-00845: MEMORY_TARGET not supported on this system"错误 系统环境:    操作系统:RedHat EL6(64)    Oracle:    Oracle 11g R2 故障案例: 在Oracle 11gR2下调整内存参数:memory_target SQL> show parameter mem NAME TYPE VALUE -------------------------------

startup ORA-00845: MEMORY_TARGET not supported on this system

一台虚拟机跑多个实例时,由于/dev/shm空间不够导致如下报错> startupORA-00845: MEMORY_TARGET not supported on this system解决方法:修改/etc/fstab中为tmpfs                   /dev/shm                tmpfs   defaults,size=2048m        0 0 重新mount mount -o remount /dev/shm

解决eclipse: Resource is out of sync with the file system 报错问题

eclipse版本:4.3 在eclipse中搜索时,搜索完之后有时候会弹出错误对话框,错误摘录如下: Resource is out of sync with the file system......分析:这个问题是由于eclipse中文件不同步引起的.在eclipse中,工程文件是由eclipse自动扫描添加的,如果在外部修改了工程目录中的文件但 又关闭了自动刷新功能,则会引起文件不同步,从而搜索时出现Resource is out of sync with the file system

Oracle 11g ORA-00845: MEMORY_TARGET not supported on this system

启动Oracle 11gR2后报错:ORA-00845 rac1:/home/oracle> sqlplus / as sysdba; SQL*Plus: Release 11.2.0.3.0 Production onTue Feb 14 09:11:41 2012 Copyright (c) 1982, 2011, Oracle.  All rights reserved. Connected to an idle instance. SQL> startup ORA-00845: MEM