当前位置:网站首页>Oracle收集统计信息
Oracle收集统计信息
2022-06-11 01:01:00 【喝醉酒的小白】
show parameter cpu
begin
dbms_stats.gather_database_stats(
estimate_percent=>dbms_stats.auto_sample_size,
method_opt=>'for all columns size AUTO',
degree=>32,
cascade=>true,
no_invalidate=>false
);
end;
/
estimate_percent:采样行的百分比,取值范围[0.000001,100],null为全部分析,不采样。常量:DBMS_STATS.AUTO_SAMPLE_SIZE是默认值,由oracle决定最佳取采样值。
cascade:是否收集索引的信息,默认为FALSE。
no_invalidate:true:表示不进行游标失效动作,原有的shared cursor保持原有状态;false:表示将统计量对象相关的所有cursor全部失效;auto_invalidate:Oracle自己决定shared cursor失效动作。
SYS.DBMS_STATS.gather_database_stats

建议不要设置并行收集,该机制会造成数据库中产生过多活动会话,并对数据库产生严重负载压力。另还有收集时注意dgree参数的值。
exec dbms_stats.set_global_prefs('CONCURRENT','FALSE');
边栏推荐
- Well paid test development programmers, why are you leaving? Kill each other with products until the sky is dark
- 【交通标志识别】基于matlab GUI YCbCr特征提取+BP神经网络交通标志识别【含Matlab源码 1869期】
- 视频压缩数据集TVD
- Basic underlying principles of concurrent programming (4)
- Method of using dism command to backup driver in win11 system
- 【Qt】error: QApplication: No such file or directory 解决方案
- 腾讯面试官曰Mysql架构的内部模块索引原理及性能优化思路谁会?
- [leetcode] different binary search trees (recursion - recursion + memory search optimization - dynamic programming)
- Task06: bit operation
- 【MATLAB】MATLAB图像处理基本操作
猜你喜欢

ACM tutorial - heap sorting

Linux Installation MySQL database details

Project sorting of Online Exercise System Based on gin and Gorm
![[music] playing city of the sky based on MATLAB [including Matlab source code 1874]](/img/cf/63b04080867e93ab2e00e2e21b37df.jpg)
[music] playing city of the sky based on MATLAB [including Matlab source code 1874]

浅析直播间海量聊天消息的架构设计难点

The female programmer gives out a salary slip: the salary is high, but she feels she is 10 years old

Xpath注入

【交通标志识别】基于matlab GUI YCbCr特征提取+BP神经网络交通标志识别【含Matlab源码 1869期】

Task01: be familiar with the basic process of news recommendation system

SAP SMARTFORMS换页打印自动判断
随机推荐
聊聊一个注解实现接口重试
面试官:介绍一下你简历中的项目,细讲一点,附项目实战
【MATLAB】图像增强(幂次变换、直方图规定化处理方法、平滑、锐化滤波)
ME11/ME12采购信息记录及条件记录创建及更新BAPI:ME_INFORECORD_MAINTAIN_MULTI
AI 狂想|来这场大会,一起盘盘 AI 的新工具!
Union find
flutter_swiper 轮播图 插件
Me11/me12 purchase information record and condition record creation and update bapi:me_ INFORECORD_ MAINTAIN_ MULTI
[leetcode] LRU cache
[winning] Title A of the 9th Teddy Cup Challenge
Clip paper details
Task02: basic use of database (MySQL)
Linux Installation MySQL database details
Dinner a bang's Craft
[leetcode] flat multi-level bidirectional linked list
【Qt】error: QApplication: No such file or directory 解决方案
Task03: building an offline material system
AI fanaticism | come to this conference and work together on the new tools of AI!
How to reinstall win11 drawing tool when it is missing
Sword finger offer II 095 Longest common subsequence dynamic programming