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 小时前
SQL进阶之旅 Day 21:临时表与内存表应用
sql·mysql·postgresql·database·temporary-table·memory-table·sql-optimization
zhuiQiuMX3 小时前
分享今天做的力扣SQL题
sql·算法·leetcode
老纪的技术唠嗑局5 小时前
重剑无锋,大巧不工 —— OceanBase 中的 Nest Loop Join 使用技巧分享
数据库·sql
寒山李白6 小时前
MySQL复杂SQL(多表联查/子查询)详细讲解
sql·mysql·子查询·多表联查
nanzhuhe7 小时前
sql中group by使用场景
数据库·sql·数据挖掘
消失在人海中7 小时前
oracle sql 语句 优化方法
数据库·sql·oracle
程序员岳焱9 小时前
Java 与 MySQL 性能优化:MySQL 慢 SQL 诊断与分析方法详解
后端·sql·mysql
Channing Lewis9 小时前
sql server如何创建表导入excel的数据
数据库·oracle·excel
UGOTNOSHOT9 小时前
每日八股文6.3
数据库·sql
远方160911 小时前
20-Oracle 23 ai free Database Sharding-特性验证
数据库·人工智能·oracle