Oracle启动提示ORA-00845:内存错误的解决办法

WBOY
풀어 주다: 2016-06-07 17:05:22
원래의
1054명이 탐색했습니다.

来自Oracle的官方解析是:Starting with Oracle Database 11g, the Automatic Memory Management feature requires more shared

今天把虚拟机的内存改小了一点,,然后启动数据的时候就出现如下错误:

SQL> startup

ORA-00845: MEMORY_TARGET not supported on this system

我猜想应该是系统内存和sga冲突的问题,后来到网上查了一下,果然如此:

来自Oracle的官方解析是:

Starting with Oracle Database 11g, the Automatic Memory Management feature requires more shared memory (/dev/shm)and file descriptors. The size of the shared memory should be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on the computer. If MEMORY_MAX_TARGET or MEMORY_TARGET is set to a non zero value, and an incorrect size is assigned to the shared memory, it will result in an ORA-00845 error at startup.

也就是由于设置SGA的大小超过了操作系统/dev/shm的大小:

解决这个问题只有两个方法,一种是修改初始化参数,使得初始化参数中SGA的设置小于/dev/shm的大小,另一种方法就是调整/dev/shm的大小。

一.修改/dev/shm的大小

root 登录

  • #vi /etc/fstab  

    将上面的size改成超过sga的大小。然后重启或者重新挂载

    #umount /dev/shm

    #mount /dev/shm

    二.修改sga的大小

    然后重新启动数据库。

    linux

  • 원천:php.cn
    본 웹사이트의 성명
    본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
    최신 이슈
    인기 튜토리얼
    더>
    최신 다운로드
    더>
    웹 효과
    웹사이트 소스 코드
    웹사이트 자료
    프론트엔드 템플릿
    회사 소개 부인 성명 Sitemap
    PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!