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

相关推荐
IT 小阿姨(数据库)3 小时前
PostgreSQL 之上的开源时序数据库 TimescaleDB 详解
运维·数据库·sql·postgresql·开源·centos·时序数据库
sadandbad4 小时前
[vulhub靶机通关]DC-2(rbash绕过_git提权)
网络·sql·web安全·网络安全
万事大吉CC5 小时前
SQL表设计与约束教程
数据库·sql
ANGLAL7 小时前
17.MyBatis动态SQL语法整理
java·sql·mybatis
懒羊羊不懒@7 小时前
【MySQL | 基础】通用语法及SQL分类
数据库·oracle
llxxyy卢7 小时前
基于时间的 SQL 盲注-延时判断和基于布尔的 SQL 盲注
数据库·sql·oracle
珊珊而川8 小时前
MAC-SQL:黄金标准错误
数据库·sql
l1t13 小时前
利用DeepSeek优化SQLite求解数独SQL用于DuckDB
开发语言·数据库·sql·sqlite·duckdb
海绵啵啵呀14 小时前
SQL plus中解决上下键找历史命令的工具--rlwrap命令行工具
数据库·sql
LilySesy14 小时前
ABAP+在select的时候,可以A=B A=C B=C这样子JOIN吗?
数据库·sql·ai·excel·sap·abap