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

相关推荐
不剪发的Tony老师32 分钟前
Valentina Studio:一款跨平台的数据库管理工具
数据库·sql
重生之我要当java大帝39 分钟前
java微服务-尚医通-编写医院设置接口下
java·开发语言·sql
杀气丶2 小时前
L2JBR - 修复数据库编码为UTF8
数据库·sql·oracle
冼紫菜2 小时前
[特殊字符] 深入理解 PageHelper 分页原理:从 startPage 到 SQL 改写全过程
java·后端·sql·mysql·spring
青山撞入怀11142 小时前
sql题目练习-子查询
java·数据库·sql
!if3 小时前
springboot mybatisplus 配置SQL日志,但是没有日志输出
spring boot·sql·mybatis
cgsthtm6 小时前
RuoYi.Net后端返回雪花ID前端精度丢失问题
oracle·vue·精度丢失·雪花id·ruoyi.net
友善的鸡蛋11 小时前
项目中执行SQL报错oracle.jdbc.OracleDatabaseException: ORA-00942: 表或视图不存在
数据库·sql·oracle
Olrookie12 小时前
MySQL运维常用SQL
运维·数据库·sql·mysql·dba
数据库生产实战12 小时前
ORACLE 19C ADG环境 如何快速删除1.8TB的分区表?有哪些注意事项?
数据库·oracle