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

相关推荐
石头wang4 小时前
oracle jdbc 依赖以及对dbeaver的性能影响,如何选择oracle驱动, oracle jdbc 驱动
数据库·oracle
tod1135 小时前
力扣高频 SQL 50 题阶段总结(四)
开发语言·数据库·sql·算法·leetcode
-XWB-6 小时前
【Oracle】Oracle诊断系列(2/6):锁问题与阻塞分析——解决“卡住”的会话
数据库·oracle
cqsztech6 小时前
Oracle 26ai 2节点RAC 保姆级搭建步骤
数据库·oracle
知识分享小能手7 小时前
Oracle 19c入门学习教程,从入门到精通,Oracle 的闪回技术 — 语法知识点与使用方法详解(19)
数据库·学习·oracle
踢足球09297 小时前
寒假打卡:2026-01-31
数据库·sql
-XWB-8 小时前
【Oracle】Oracle诊断系列(4/6):表空间与对象管理——存储优化与空间规划
数据库·oracle
山峰哥8 小时前
SQL优化全解析:从索引策略到查询性能飞跃
大数据·数据库·sql·编辑器·深度优先
Apple_羊先森9 小时前
ORACLE数据库巡检SQL脚本--7、检查不起作用的约束
数据库·sql·oracle
怣5010 小时前
MySQL表的数据检索:从基础到精通
数据库·sql·mysql