数据库启动时报ORA-00845错误解决方法
2017-10-30 15:58
519 查看
问题描述:巡检时发现某一个节点数据库down了,通过sqlplus 进行系统时显示连接的是一个空实例,尝试通过startup重启数据库报错,提示MEMORY_TARGETnot supported on this system,查看告警日志报MEMORY_TARGET失败,要增加/dev/shm大小才可以解决问题
登录数据库时报错信息如下:
[oracle@db01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Productionon Mon Oct 30 09:26:35 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
后台日志报如下信息:
Starting ORACLE instance (normal)
WARNING: You are trying to use theMEMORY_TARGET feature. This feature requires the /dev/shm file system to bemounted for at least 13522436096 bytes. /dev/shm is either not mounted or ismounted with available space less than this size. Please fix this so that MEMORY_TARGETcan work as expected. Current available is 12203786240 and used is 454021120bytes. Ensure that the mount point is /dev/shm for this directory.
memory_target needs larger /dev/shm
问题分析:
由于Oracle11g中使用的是AMM,当MEMORY_TARGET大于/dev/shm时就提示不支持此系统,从而报错无法启动数据库,由于/dev/shm是通过tmpfs通过大小的,在Linux环境中可以通过修改此大小解决问题
解决方法:
1、 查看当前的tmpfs大小信息[oracle@i60001~]$ df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/vg_db01-LogVol02 229G 65G 153G 30% /tmpfs 12G 434M 12G 4% /dev/shm--此处要修改/dev/sde1 485M 40M 420M 9% /boot/dev/mapper/vg_db01-LogVol00 30G 5.0G 24G 18% /usr[oracle@i60001~]$ mount -o size=20G -onr_inodes=1000000 -o noatime,nodiratime -o remount /dev/shmmount: onlyroot can do that修改tmpfs大小要通过root用户下面操作,切换到root用户[oracle@i60001~]$ su rootPassword:2、修改tmpfs大小
[root@db01oracle]# mount -o size=20G -o nr_inodes=1000000 -o noatime,nodiratime-o remount /dev/shm[root@db01oracle]# df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/vg_db01-LogVol02 229G 65G 153G 30% /tmpfs 20G 434M 20G 3% /dev/shm--修改后的大小
/dev/sde1 485M 40M 420M 9% /boot/dev/mapper/vg_db01-LogVol00 30G 5.0G 24G 18% /usr 3、修改tmpfs大小后,再登录数据库中重启实例
[oracle@db01~]$ sqlplus / as sysdba SQL*Plus:Release 11.2.0.4.0 Production on Mon Oct 30 09:42:02 2017 Copyright (c)1982, 2013, Oracle. All rights reserved. Connected toan idle instance. SQL>startup; ORACLEinstance started. Total SystemGlobal Area 1.3462E+10 bytesFixed Size 2265984 bytesVariable Size 7381978240 bytesDatabaseBuffers 6039797760 bytesRedo Buffers 38014976 bytesDatabasemounted.Database opened.-显示启动成功--查询当前的数据库实例是否正常SQL>select open_mode from v$database; OPEN_MODE--------------------READ WRITE
登录数据库时报错信息如下:
[oracle@db01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Productionon Mon Oct 30 09:26:35 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
后台日志报如下信息:
Starting ORACLE instance (normal)
WARNING: You are trying to use theMEMORY_TARGET feature. This feature requires the /dev/shm file system to bemounted for at least 13522436096 bytes. /dev/shm is either not mounted or ismounted with available space less than this size. Please fix this so that MEMORY_TARGETcan work as expected. Current available is 12203786240 and used is 454021120bytes. Ensure that the mount point is /dev/shm for this directory.
memory_target needs larger /dev/shm
问题分析:
由于Oracle11g中使用的是AMM,当MEMORY_TARGET大于/dev/shm时就提示不支持此系统,从而报错无法启动数据库,由于/dev/shm是通过tmpfs通过大小的,在Linux环境中可以通过修改此大小解决问题
解决方法:
1、 查看当前的tmpfs大小信息[oracle@i60001~]$ df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/vg_db01-LogVol02 229G 65G 153G 30% /tmpfs 12G 434M 12G 4% /dev/shm--此处要修改/dev/sde1 485M 40M 420M 9% /boot/dev/mapper/vg_db01-LogVol00 30G 5.0G 24G 18% /usr[oracle@i60001~]$ mount -o size=20G -onr_inodes=1000000 -o noatime,nodiratime -o remount /dev/shmmount: onlyroot can do that修改tmpfs大小要通过root用户下面操作,切换到root用户[oracle@i60001~]$ su rootPassword:2、修改tmpfs大小
[root@db01oracle]# mount -o size=20G -o nr_inodes=1000000 -o noatime,nodiratime-o remount /dev/shm[root@db01oracle]# df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/vg_db01-LogVol02 229G 65G 153G 30% /tmpfs 20G 434M 20G 3% /dev/shm--修改后的大小
/dev/sde1 485M 40M 420M 9% /boot/dev/mapper/vg_db01-LogVol00 30G 5.0G 24G 18% /usr 3、修改tmpfs大小后,再登录数据库中重启实例
[oracle@db01~]$ sqlplus / as sysdba SQL*Plus:Release 11.2.0.4.0 Production on Mon Oct 30 09:42:02 2017 Copyright (c)1982, 2013, Oracle. All rights reserved. Connected toan idle instance. SQL>startup; ORACLEinstance started. Total SystemGlobal Area 1.3462E+10 bytesFixed Size 2265984 bytesVariable Size 7381978240 bytesDatabaseBuffers 6039797760 bytesRedo Buffers 38014976 bytesDatabasemounted.Database opened.-显示启动成功--查询当前的数据库实例是否正常SQL>select open_mode from v$database; OPEN_MODE--------------------READ WRITE
相关文章推荐
- 实例启动时报ORA-00845的解决方法
- 实例启动时报ORA-00845的解决方法
- 启动数据库时提示ORA-03113: 通信通道的文件结尾解决方法
- 关于启动数据库后提示ora-12505的解决方法
- 数据库ORA-01196(ORA-10458/ORA-01110)错误解决方法
- Tomcat启动时报java.net.BindException:Address already in use:JVM Bind:8443错误的解决方法
- Oracle 11g参数修改错误导致数据库无法启动的处理方法.[ORA-01034,ORA-27101,ORA-00824]
- 删除EM,强制结束EM进程后,启动数据库ORA-00119,ORA-00132报错的解决方法
- VC编译没有错误,exe文件操作数据库(ADO/MDB)时报错,解决方法
- 数据库无法登陆解决方法(错误码:ora-00257)
- Oracle建立实例时报【ORA-12638: 身份证明检索失败解决方法】错误的解决方法
- 将Ofbiz的数据库改为Oracle,运行时出现 ORA-01843: 无效的月份 错误 的原因及解决方法
- MySql重装或者重新配置数据库实例时遇到“本地计算机无法启动Mysql服务”错误的解决方法
- VS2010 64位系统 连接数据库时报“连接数据库 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。”的错误 解决方法
- oracle数据库出现“批处理中出现错误: ORA-00001: 违反唯一约束条件”解决方法
- 解决数据库实例启动ORA-00205或控制文件损坏错误
- sqlserver2000还原数据库时报设备激活错误的解决方法
- /dev/shm过小导致ORA-00845错误解决方法
- 从数据库参数和系统内核参数解决ORA-00845错误
- 删除EM,强制结束EM进程后,启动数据库ORA-00119,ORA-00132报错的解决方法