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

相关推荐
在未来等你34 分钟前
SQL进阶之旅 Day 23:事务隔离级别与性能优化
sql·mysql·postgresql·高并发·数据一致性·数据库优化·事务隔离
_Chipen2 小时前
6.10 - 常用 SQL 语句以及知识点
数据库·sql·oracle
青春之我_XP3 小时前
【SQL学习笔记1】增删改查+多表连接全解析(内附SQL免费在线练习工具)
数据库·sql
焱焱枫3 小时前
Oracle SQL*Plus 配置上下翻页功能
数据库·oracle·#上下翻页
烟雨归来9 小时前
19c补丁后oracle属主变化,导致不能识别磁盘组
数据库·oracle
厚衣服_39 小时前
第7篇:中间件全链路监控与 SQL 性能分析实践
数据库·sql·中间件
晚风_END10 小时前
postgresql|数据库|只读用户的创建和删除(备忘)
数据库·postgresql·oracle
Kookoos10 小时前
ABP vNext + Hive 集成:多租户大数据 SQL 查询与报表分析
大数据·hive·sql·.net·abp vnext
消失在人海中11 小时前
oracle与MySQL数据库之间数据同步的技术要点
数据库·mysql·oracle
恰薯条的屑海鸥12 小时前
SQL注入篇-sqlmap的配置和使用
数据库·sql·安全·web安全·渗透测试·网络安全学习