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 小时前
整库迁移与分库分表同步:批量数据搬迁的配置简化思路
jvm·数据库·oracle
数智启示录3 小时前
PostgreSQL 计划缓存实战(第 10 篇):预编译 SQL 前五次都快,第六次为什么可能变慢
经验分享·sql·缓存·postgresql·面试
cfm_29143 小时前
Spring事务
数据库·spring·oracle
ClouGence4 小时前
CloudDM 支持达梦、KingbaseES、GoldenDB,国产数据库也能统一管起来
数据库·sql·开源
CarIise5 小时前
JDBC数据库操作与SQL注入防范
数据库·sql
疯狂打码的少年5 小时前
【数据库技术】SQL嵌套查询(IN/EXISTS/ANY/ALL)
数据库·笔记·sql
CarIise7 小时前
MySQL数据库与SQL语言:从数据类型到DQL查询核心
sql
倔强的石头1068 小时前
连接数失控排查:从数据库会话、应用线程池到连接池泄漏
数据库·oracle
润乾软件9 小时前
SQLazy:合并有重叠的时间区间
数据库·sql·sqlazy
拾光Ծ9 小时前
【MySQL】复合查询、表的连接
java·数据库·sql·mysql