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

相关推荐
奋进小子9 小时前
达梦DISQL执行SQL和SQL脚本
数据库·sql
小蜗的房子11 小时前
Linux-Redhat9.5图形化安装Oracle19.25单实例详细步骤
oracle
AllData公司负责人13 小时前
DataFun联合开源AllData社区和开源Gravitino社区将在8月9日相聚数据治理峰会论坛
大数据·数据库·sql·开源
iknow18118 小时前
【Web安全】Sql注入之SqlServer和MySQL的区别
sql·mysql·sqlserver
Runing_WoNiu1 天前
Mysql与Ooracle 索引失效场景对比
数据库·mysql·oracle
beijingliushao1 天前
32-Hive SQL DML语法之查询数据
数据库·hive·sql
山茶花开时。2 天前
[Oracle] FLOOR()函数
数据库·oracle
山茶花开时。2 天前
[Oracle] LEAST()函数
数据库·oracle
六毛的毛2 天前
Langchain入门:构建一个基于SQL数据的问答系统
数据库·sql·langchain
山茶花开时。3 天前
[Oracle] MOD()函数
数据库·oracle