網站首頁 編程語言 正文
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-11-13 Python?wheel文件詳細介紹_python
- 2022-09-16 Android?Jetpack架構中ViewModel接口暴露的不合理探究_Android
- 2022-10-24 六個Python3中使用最廣泛的內置函數總結_python
- 2022-07-03 C++超詳細講解隱藏私有屬性和方法的兩種實現方式_C 語言
- 2022-04-01 Python?eval()?函數看這一篇就夠了_python
- 2022-06-30 利用Python刪除電腦中重復文件的方法_python
- 2022-05-15 require和import的區別詳解
- 2021-12-28 vscode搭建go開發環境案例詳解_Golang
- 最近更新
-
- 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同步修改后的遠程分支