为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:DM8
【操作系统】:Centos7
【CPU】:
[root@vm2 ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
座: 1
NUMA 节点: 1
厂商 ID: GenuineIntel
CPU 系列: 6
型号: 186
型号名称: 13th Gen Intel(R) Core(TM) i5-1340P
步进: 2
CPU MHz: 2188.798
BogoMIPS: 4377.59
超管理器厂商: KVM
虚拟化类型: 完全
L1d 缓存: 48K
L1i 缓存: 32K
L2 缓存: 1280K
L3 缓存: 12288K
NUMA 节点0 CPU: 0,1
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ibrs_enhanced fsgsbase bmi1 avx2 bmi2 invpcid rdseed adx clflushopt sha_ni arat md_clear flush_l1d arch_capabilities
[root@vm2 ~]#
【问题描述】*:
我之前对达梦数据库做了故障演练,发现缓存命中率的性能数据已经很差了,现在想清空这些统计数据,恢复到比较干净的状态。具体要怎么清理?
select
name 缓冲池名称,
sum(page_size)sf_get_page_size 缓冲池大小_G,
sum(rat_hit) /count() 命中率
from
v$bufferpool
group by name;
服务器内存是什么配置,可以试着把缓冲区BUFFE值调大点看看。

1、sp_clear_plan_cache(); ----清除所要的缓存
2、
SELECT * FROM v$cachepln where SQLSTR LIKE ‘%select *from V$SESSIONS%’;
SP_CLEAR_PLAN_CACHE(cache_item);
–---对这个SQL语句的缓存计划进行清理,用这两个sql配合可以清理缓存