ORA-00845: MEMORY_TARGET not supported on this system

来源:互联网 发布:手机声卡软件 编辑:程序博客网 时间:2024/05/22 19:11
来自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.
      简单来说就是 MEMORY_MAX_TARGET 的设置不能超过 /dev/shm 的大小
调整MEMORY_MAX_TARGET,

查看/dev/shm原本大小

[root@iZwzeee0inyhirbZ bin]# df -h|grep shm
tmpfs           939M     0  939M   0% /dev/shm

在文件搜索里找到init.ora.XXXXXXX文件

更改MEMORY_TARGET的值:

###########################################
# Miscellaneous
###########################################
compatible=11.2.0.0.0
diagnostic_dest=/u01/app/oracle
memory_target=962846720
 

强制加载启动成功:

SQL> startup force pfile='/u01/app/oracle/admin/orcl/pfile/init.ora.5302016102522'
ORACLE instance started.


Total System Global Area  960372736 bytes
Fixed Size    2219152 bytes
Variable Size  541066096 bytes
Database Buffers  411041792 bytes
Redo Buffers    6045696 bytes
Database mounted.
Database opened.
SQL> 

0 0