设置oracle11g自动内存管理,重新设置了memory_max_target,但重新启动数据库时却报错:
ORA-00845: MEMORY_TARGET not supported on this system
原因: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 的大小(shm默认的实际内存的一半)
解决方案:
df -h |grep shm 查看大小
可以修改大小 /etc/fstab中
tmpfs /dev/shm tmpfs defaults 0 0 为
tmpfs /dev/shm tmpfs defaults,size=新大小 0 0
然后umount /dev/shm mount /dev/shm使设置生效
重新启动数据库
但尝试过程中还会遇到其它错误,都是由于参数设置错误导致的
可以看到之前设置参数的语句alter system set memory_max_target=32G scope=spfile
可见,设置只针对spfile有效,则可以用pfile启动数据库
即,startup pfile='pfile存放路径'
create spfile from pfile='pfile存放路径'
最后再次重启数据库即可
直接从参数配置数据库,需要操作人员对oracle不同版本的特性有深刻的了解,否则就容易出现这种不经意的错误,但危害极大
分享到:
相关推荐
在启动Oracle数据库时提示:ORA-00845 MEMORY_TARGET not supported on this system错误,解决办法
调整参数后引起,ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least 3 2768M 的解决方案
129255-oracle_timesten_in-memory_database129255-oracle_timesten_in-memory_database129255-oracle_timesten_in-memory_database129255-oracle_timesten_in-memory_database
Oracle的NLS_DATE_FORMAT设置(日期格式设置)_ITPUB博客.mhtml
Oracle 参数FAST_START_MTTR_TARGET的详细介绍
Oracle_SSN_DLM_08030814.exe
plsql在64位机器上连接oracle数据库 1、配置环境变量(以下C:\Oracle_...设置oracle目录名为C:\Oracle_instant_client_10_2 OCI库为C:\Oracle_instant_client_10_2\oci.dll 4、关闭plsql重新启动plsql就可以正常登录了。
memory_target 解决方案 ORACLE自动内存管理配置
oracle11G调整物理内存提示ORA-00845 MEMORY_TARGET
Oracle_VM_VirtualBox_Extension_Pack-5.0.2-102096扩展包
在安装VirtualBox时候的VirtualBox Extension Pack文件: Oracle_VM_VirtualBox_Extension_Pack-6.1.4.vbox-extpack
Oracle_VM_VirtualBox_Extension_Pack-5.2.12搭建虚拟主机平台。
Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992.vbox-extpack 作为Oracle_VM_VirtualBox的扩展补丁
Oracle_VM_VirtualBox_Extension_Pack-5.2.22,用于VirtualBox外接移动设备识别
\Oracle8i_9i数据库基础\Oracle8i_9i数据库基础\Oracle8i_9i数据库基础\Oracle8i_9i数据库基础\Oracle8i_9i数据库基础\Oracle8i_9i数据库基础\Oracle8i_9i数据库基础\Oracle8i_9i数据库基础\Oracle8i_9i数据库基础\...
根据系统类型、DB版本和OS内存自动计算Oralce建议的memory_target、SGA和PGA大小
o Make Oracle_HOME $ORACLE_BASE/product/version/{db|client|companion}_[n]. Examples: /u01/app/oracle/product/11.1.0/db_1 /u01/app/oracle/product/11.1.0/client_1 /u01/app/oracle/product/10.1.0.2.0/db_1...
Oracle_VM_VirtualBox_Extension_Pack-4.2.16扩展包 支持所用多平台
在Jupyter连接Oracle数据库所需要的文件,请根据python版本选择。
Oracle_VM_VirtualBox_Extension_Pack-6.1.0.vbox-extpack,virtualbox虚拟机扩展包