ORA-00845 MEMORY_TARGET not supported on this system報錯解決
ORA-00845 MEMORY_TARGET not supported on this system報錯解決
作業系統版本: CentOS 5.4
資料庫版本: 11.2.0.2
現象
Oracle 11g資料庫修改pfile引數後啟動資料庫報錯ora-00845
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
查詢資料後發現問題如下,見metalinik ID 460506.1
在oracle 11g中新增加了一個記憶體自動管理的引數MEMORY_TARGET,它能自動調整SGA和PGA,這個特性需要用到/dev/shm共享檔案系統,而且要求/dev/shm必須大於MEMORY_TARGET,如果/dev/shm比MEMORY_TARGET小就會報錯
解決方案
1.初始化引數MEMORY_TARGET或 MEMORY_MAX_TARGET不能大於共享記憶體(/dev/shm),為了解決這個問題,可以增大/dev/shm
如:
# mount -t tmpfs shmfs -o size=7g /dev/shm
2.為了確保作業系統重啟之後能生效,需要修改/etc/fstab檔案
shmfs /dev/shm tmpfs size=7g 0
3. 如果/dev/shm沒有掛載也會報上面的錯,所認需要確保已經掛載
oracle@taxprod-db ~]$ df -h
………………
tmpfs 16G 8.9G 7.2G 56% /dev/shm
………………………
下面為一次操作的記錄
[root@taxprod-db ~]# cat /etc/fstab | grep tmpfs
tmpfs /dev/shm tmpfs defaults,size=8g 0 0
[root@taxprod-db ~]#
[root@taxprod-db ~]# mount -o remount,size=16G /dev/shm
[root@taxprod-db ~]#
[root@taxprod-db ~]# cat /etc/fstab | grep tmpfs
tmpfs /dev/shm tmpfs defaults,size=8g 0 0
[root@taxprod-db ~]# vi /etc/fstab
/dev/rootvg/LogVol02 / ext3 defaults 1 1
/dev/rootvg/LogVol01 /tmp ext3 defaults 1 2
/dev/rootvg/lvol0 /ebao ext3 defaults 1 2
/dev/rootvg/lvol1 /backup ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults,size=16g 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/rootvg/LogVol00 swap swap defaults 0 0
"/etc/fstab" 10L, 769C written
[root@taxprod-db ~]# df -h|grep shm
tmpfs 16G 0 16G 0% /dev/shm
SQL> startup
ORACLE instance started.
Total System Global Area 9420095488 bytes
Fixed Size 2236248 bytes
Variable Size 2315255976 bytes
Database Buffers 7046430720 bytes
Redo Buffers 56172544 bytes
Database mounted.
Database opened.
SQL> exit
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21605631/viewspace-718145/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-00845: MEMORY_TARGET not supported on this system報錯解決
- Oracle報錯:ORA-00845: MEMORY_TARGET not supported on this systemOracle
- Oracle 11g報錯"ORA-00845: MEMORY_TARGET not supported on this system"Oracle
- oracle 11g報錯ORA-00845: MEMORY_TARGET not supported on this systemOracle
- 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 失敗的解決方案
- startup ORA-00845: MEMORY_TARGET not supported on this system
- ORA-00845: MEMORY_TARGET not supported on this system - Linux ServersLinuxServer
- Oracle11g啟動報:ORA-00845: MEMORY_TARGET not supported on this systemOracle
- Oracle11g ORA-00845: MEMORY_TARGET not supported on this systemOracle
- 解決辦法:ORA-00845: MEMORY_TARGET not supported on thi
- ORA-00845 MEMORY_TARGET not supported
- MEMORY_TARGET not supported on this system
- HugePages與AMM不相容:ORA-00845: MEMORY_TARGET not supported on this system
- MEMORY_TARGET not supported on this system for linuxLinux
- linux下/dev/shm的大小引發ORA-00845: MEMORY_TARGET not supported on this systemLinuxdev
- ORA-00845 : MEMORY_TARGET not supported on this system(調大資料庫記憶體無法啟動)大資料資料庫記憶體
- 解決報錯error the @annotation pointcut expression is only supported at Java 5ErrorExpressJava
- ORA-00845: MEMORY_TARGET
- memory_max_target/memory_target設定過大報ORA-00845錯誤
- hive報system:java.io.tmpdir錯誤解決HiveJava
- ORA-00845的錯誤與解決方案
- /system/bin/sh: screenrecord: inaccessible or not found 報錯解決方案
- ORACLE11G解決ORA-00845錯誤Oracle
- ORA-00845 memory_target needs larger /dev/shmdev
- ORA-00845 解決
- 如何解決ORA-00845錯誤
- System.Data.SqlClient is not supported on this platform.SQLclientPlatform
- 解決The given version [xx] is not supported, only version 1 to 10 is supported in this buildUI
- 解決Linux上11g的ORA-00845錯誤Linux
- 解決 Lumen 中 client charset is not supportedclient
- mybatis報錯解決MyBatis
- Mac新建資料夾報錯,mkdir():Operation not supportedMac
- 解決fitz模組報錯
- SS報錯的解決
- 解決eslint報錯EsLint