数据库安装完成后,正常启动,运行一段时间后,需要修改参数 要重启实例
重启报错 ORA-00845
以下为查看错误代码给出的原因
SQL> host oerr ora 00845
00845, 00000, "MEMORY_TARGET not supported on this system"
// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm was not sized correctly on Linux.
// *Action: Refer to documentation for a list of supported operating systems. Or, size /dev/shm to be at least the SGA_MAX_SIZE on each Oracle instance running on the system.
根据以上信息 ,可以看出 要求MEMORY_TARGET 小于 shm (根据测试应该为可用空间)的大小
查看shm大小
df -h | grep shm
1. 减小MEMORY_TARGET大小
通过修改spfile文件
2.加大shm
mount -o remount,size=4G /dev/shm
修改/etc/fstab
tmpfs /dev/shm tmpfs defaults,size=4G 0 0
重启报错 ORA-00845
以下为查看错误代码给出的原因
SQL> host oerr ora 00845
00845, 00000, "MEMORY_TARGET not supported on this system"
// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm was not sized correctly on Linux.
// *Action: Refer to documentation for a list of supported operating systems. Or, size /dev/shm to be at least the SGA_MAX_SIZE on each Oracle instance running on the system.
根据以上信息 ,可以看出 要求MEMORY_TARGET 小于 shm (根据测试应该为可用空间)的大小
查看shm大小
df -h | grep shm
1. 减小MEMORY_TARGET大小
通过修改spfile文件
2.加大shm
mount -o remount,size=4G /dev/shm
修改/etc/fstab
tmpfs /dev/shm tmpfs defaults,size=4G 0 0
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28282660/viewspace-1478508/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28282660/viewspace-1478508/