问题:SQL> startup;
ORA-00845: MEMORY_TARGET not supported on this system
启动oracle实例时,提示ORA-00845: MEMORY_TARGET not supported on this system;
原因:是因为这个/dev/shm(可用的值)小于MEMORY_TARGET的值
首先查看/dev/shm的值:
[[email protected] ~]# df -k /dev/shm
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 12582912 7848176 4734736 63% /dev/shm
然后查看MEMORY_TARGET的值,登录orcl实例下:
SQL> show parameter target;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target integer 0
db_flashback_retention_target integer 1440
fast_start_io_target integer 0
fast_start_mttr_target integer 0
memory_max_target big integer 4224M
memory_target big integer 4224M
parallel_servers_target integer 32
pga_aggregate_target big integer 0
sga_target big integer 0
对比下shm可用的值和memory_target的值,只需要设置shm的可用值大于memory_target的值即可;
步骤:1、调整/dev/shm大小:找到这个文件/etc/fstab,直接修改为tmpfs /dev/shm tmpfs defaults,size=10240M 0 0 ;
2、重新加载 ,执行mount /dev/shm命令:[email protected] ~]# mount /dev/shm;
3、再次查看shm的可用值,如果大于memory_target的值,就可以成功启动实例了;
原文地址:https://www.cnblogs.com/mysy/p/10838394.html