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

相关推荐
IvanCodes3 小时前
Oracle 视图
大数据·数据库·sql·oracle
亲爱的非洲野猪5 小时前
Oracle与MySQL详细对比
数据库·mysql·oracle
睿思达DBA_WGX20 小时前
由 DB_FILES 参数导致的 dg 服务器无法同步问题
运维·数据库·oracle
渣渣盟21 小时前
掌握MySQL函数:高效数据处理指南
sql·mysql·adb·dba
??? Meggie1 天前
【SQL】使用UPDATE修改表字段的时候,遇到1054 或者1064的问题怎么办?
android·数据库·sql
工藤学编程1 天前
分库分表之实战-sharding-JDBC绑定表配置实战
数据库·分布式·后端·sql·mysql
在安全厂商修设备1 天前
SQL注入与防御-第六章-3:利用操作系统--巩固访问
sql·web安全·网络安全
He.ZaoCha1 天前
函数-3-日期函数
数据库·sql·mysql
工藤学编程1 天前
分库分表之实战-sharding-JDBC水平分库+分表后:查询与删除操作实战
数据库·spring boot·后端·sql·mysql
好奇的菜鸟2 天前
Spring Boot 事务失效问题:同一个 Service 类中方法调用导致事务失效的原因及解决方案
数据库·spring boot·sql