今天再次使用duplicate方式创建standby数据库的时候遇到了ORA-00845错误,如图:

ORA-00845: MEMORY_TARGET not supported on this system_第1张图片

在duplicate过程中,它要重启standby数据库至nomount状态,所以呢,遇到了上述错误。

Oracle的官方解释是:

Applies to: Oracle Server - Standard Edition - Version: 11.1.0.6 to 11.2.0.2
Linux x86-64
Symptoms

Customer may receive  the below error messages on Linux Machines ::
SQL> connect sys as sysdba
Enter password:
Connected to an idle instance.
SQL> STARTUP NOMOUNT PFILE="/opt/oracle/admin/day/pfile/day2.ini";
ORA-00845: MEMORY_TARGET not supported on this system

Cause
On Linux systems, insufficient /dev/shm mount size for PGA and SGA.
AMM (Automatic Memory Management) is a New feature in 11G which manages both SGA and PGA
together. Its is managed by MMAN, same as with 10g AMM
MEMORY_TARGET is used instead of SGA_TARGET
MEMORY_MAX_TARGET is used instead of SGA_MAX_SIZE (defaults to MEMORY_TARGET )
It uses /dev/shm on Linux
If max_target set over /dev/shm size, you may  get the below error message ::
ORA-00845: MEMORY_TARGET not supported on this system
If you are installing Oracle 11G on a Linux system, note that Memory Size (SGA and PGA), which sets
the initialization parameter MEMORY_TARGET or MEMORY_MAX_TARGET, cannot be greater than the shared memory filesystem (/dev/shm) on your operating system.
解决办法如下:

ORA-00845: MEMORY_TARGET not supported on this system_第2张图片

现在立刻将它加大:

ORA-00845: MEMORY_TARGET not supported on this system_第3张图片

然后再次执行rman脚本就不会在报错了。