網站首頁 編程語言 正文
Oracle數據庫收到類似以下ORA-4031共享內存無法分配告警時
DATABASE:"ORA-04031: unable to allocate 2456 bytes of shared memory ..."
一般有兩種應急處置辦法:一是flush共享池,二是重啟數據庫。
Flush共享池的方法如下。
查看當前共享池中的可用內存(free momory):
select bb.* from (select pool,name,sum(bytes)/1024/1024 size_mb
from v$sgastat where pool='shared pool'
group by pool,name order by sum(bytes)/1024/1024 desc) bb
where rownum < 21 order by size_mb;
在RAC倆節點flush共享池:
alter system flush shared_pool;
然后查看free memory對比之前是否增加。
Flush共享池后緩存的執行計劃被清理,短時間內SQL解析的時間會增加,并且能夠釋放的內存有限,有條件的話最好還是重啟數據庫。
原文鏈接:https://blog.csdn.net/Sebastien23/article/details/125226355
相關推薦
- 2022-06-21 C++超詳細講解友元的使用_C 語言
- 2022-04-02 Python+Tkinter繪制一個數字時鐘_python
- 2023-03-01 GoLang中Strconv庫有哪些常用方法_Golang
- 2023-02-01 MongoDB?事務支持詳解_MongoDB
- 2022-07-09 document.write() 的作用*
- 2022-10-04 一文教會你用Python讀取PDF文件_python
- 2022-06-22 一文搞懂C++多態的用法_C 語言
- 2022-09-15 React手寫一個手風琴組件示例_React
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支