flush sqlid shared_pool

DBA may need to flush the shared pool or the cursor of the query.

conn / as sysdba

alter system flush shared_pool; --- not recommend during the peak hours of the prod..

or,

select sql_text,address, hash_value, executions from v$sqlarea where sql_id = '&sqlid';

exec sys.dbms_shared_pool.purge('&address, &hash_value','c');

-- passing the address and hash_value from the previous query

相关推荐
火山上的企鹅2 小时前
Codex实战:APP远程升级服务搭建(三)后台管理页面(APK 上传、版本管理、多应用页签)
服务器·网络·数据库·oracle·qgc
仙俊红4 小时前
SQL 调优需要掌握的知识
数据库·sql
放下华子我只抽RuiKe511 小时前
FastAPI 全栈后端(三):数据库与 ORM
前端·数据库·react.js·oracle·性能优化·前端框架·fastapi
oyyanghh13 小时前
从Cursor到TRAE的三周vibe coding体验对比
数据库·oracle
Bert.Cai13 小时前
Oracle CONCAT函数详解
数据库·oracle
吴声子夜歌13 小时前
SQL经典实例——检索记录
数据库·sql
持敬chijing15 小时前
Web渗透之前后端漏洞-文件下载漏洞
sql·web安全·网络安全·网络攻击模型·web
tiancaijiben15 小时前
阿里云云备份(Cloud Backup)全量对接与使用指南
数据库·oracle
sulikey15 小时前
数据库中等值连接与自然连接的区别。为什么不建议使用自然连接?
数据库·sql·mysql·等值连接·自然连接