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

相关推荐
温柔小胖4 小时前
sql注入之python脚本进行时间盲注和布尔盲注
数据库·sql·网络安全
£漫步 云端彡6 小时前
技术分享:MyBatis SQL 日志解析脚本
java·sql·mybatis 日志解析
2301_793069826 小时前
Java和SQL测试、性能监控中常用工具
java·sql·selenium
摇滚侠10 小时前
NCHAR_CS和CHAR_CS,导致UNION ALL 时,提示SQL 错误 [12704] [72000]: ORA-12704: 字符集不匹配
数据库·sql·oracle
two_rain10 小时前
Oracle Rac 多路径链路不稳定引发IO降速-光弱
数据库·oracle
君败红颜12 小时前
MySQL 使用 Performance Schema 定位和解决慢 SQL 问题
数据库·sql·mysql
东尔科技12 小时前
PET-SQL:基于大模型的两阶段Text2SQL方法
服务器·数据库·sql
鲨鱼辣椒_TUT12 小时前
MyBatisPlus自定义sql
java·数据库·sql
我是西瓜王12 小时前
MySQL-SQL
数据库·sql·mysql
hunandede15 小时前
mysql 学习15 SQL优化,插入数据优化,主键优化,order by优化,group by 优化,limit 优化,count 优化,update 优化
sql·mysql