ORA-00845: MEMORY_TARGET not supported on this system
来源:互联网 发布:java log4j日志 xml 编辑:程序博客网 时间:2024/06/03 21:28
今天数据库登录时候报错 ORA-00845: MEMORY_TARGET not supported on this system
查阅资料:
意思大概就是说:当MEMORY_TARGET或者SGA_MAX_SIZE 参数设置的数值/dev/shm时就会报这个错误。或者 /dev/shm没有挂载的时候也会报这个错误 修复完成之后.做了一个小实验 以记录并验证。
第一个为/dev/shm 未挂载的情况下会报这个错误。
此时数据库是打开的
SQL> select status from v$instance;
STATUS
------------
OPEN
查看 /dev/shm 状态
[root@lh ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 28G 23G 3.6G 87% /
/dev/sda1 99M 12M 83M 13% /boot
tmpfs 1006M 0 1006M 0% /dev/shm
是挂载的
现在卸载 /DEV/SHM
[root@lh ~]# umount /dev/shm
umount: /dev/shm: device is busy
umount: /dev/shm: device is busy
遇到这种情况用fuser 解决
[root@lh ~]# fuser -km /dev/shm
/dev/shm: 9297m 9299m 9301m 9305m 9307m 9309m 9311m 9313m 9315m 9317m 9319m 9321m 9323m 9325m 9327m 9329m 9331m 9372m 9384m 9389m 9397m 9404m 9416m 9428m 9431m 9433m
[root@lh ~]# umount /dev/shm
[root@lh ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 28G 23G 3.6G 87% /
/dev/sda1 99M 12M 83M 13% /boot
现在/dev/shm已经卸载 切回sqlplus
SQL> select sysdate from dual;
ERROR:
ORA-03114: not connected to ORACLE
已经不再连接ORACLE,返回重新连接
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
报错
重新挂载 /dev/shm 再连接
[root@lh ~]# mount /dev/shm
[root@lh ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 28G 23G 3.6G 87% /
/dev/sda1 99M 12M 83M 13% /boot
tmpfs 1006M 0 1006M 0% /dev/shm
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
SQL> startup
ORACLE instance started.
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 553651544 bytes
Database Buffers 281018368 bytes
Redo Buffers 2379776 bytes
Database mounted.
Database opened.
SQL>
数据库成功打开。
另一种情况,
MEMORY_TARGET或者SGA_MAX_SIZE设置大于/dev/shm
SQL> show parameter memory
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address integer 0
memory_max_target big integer 804M
memory_target big integer 804M
shared_memory_address integer 0
SQL> alter system set memory_target=1200M scope=spfile;
System altered.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
报错!!
这时候增大 /dev/shm 即可
[root@lh ~]# mount -o remount,size=2048M /dev/shm
[root@lh ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 28G 23G 3.6G 87% /
/dev/sda1 99M 12M 83M 13% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
再打开ORACLE
SQL> startup
ORACLE instance started.
Total System Global Area 1252663296 bytes
Fixed Size 2227944 bytes
Variable Size 805306648 bytes
Database Buffers 436207616 bytes
Redo Buffers 8921088 bytes
Database mounted.
Database opened.
SQL>
- ORA-00845: MEMORY_TARGET not supported on this system 错误解决方法!
- ORA-00845: MEMORY_TARGET not supported on this system - Linux Servers
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ora-00845 MEMORY_TARGET not supported on this system 的问题
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- oracle11g ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system
- 读书笔记:关于wsgi、web框架和模板的总结(python)
- sqlserver完整备份一个新库的方法
- HDU 1283 最简单的计算机
- MySQL排错指南——互动出版网
- iOS中的多线程
- ORA-00845: MEMORY_TARGET not supported on this system
- 关于Myeclipse冲突的问题
- Google Play 开发者计划政策
- 采用数值方法计算最速曲线
- LinkedHashMap 初探
- android 多个动画特效一起用
- hdoj 2199 Can you solve this equation?
- HDU 1495 非常可乐
- 启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!