当前位置:网站首页>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');
边栏推荐
- [matlab] image enhancement (power transformation, histogram specification processing method, smoothing and sharpening filtering)
- QT widget's simple serial port assistant (qserialport)
- 视频压缩数据集TVD
- MD61计划独立需求导入BAPI【按日维度/动态模板/动态字段】
- [matlab] image segmentation
- flutter_ Swiper carousel map plug-in
- 【MATLAB】图像变换(傅里叶变换、离散余弦变换)
- [leetcode] different binary search trees (recursion - recursion + memory search optimization - dynamic programming)
- Project sorting of Online Exercise System Based on gin and Gorm
- Some records of China open SSL compilation
猜你喜欢

Win11系统使用DISM命令备份驱动程序的方法

面试官:介绍一下你简历中的项目,细讲一点,附项目实战

Well paid test development programmers, why are you leaving? Kill each other with products until the sky is dark
![[leetcode] construct a binary tree by traversing the sequence from front to middle (continuous optimization)](/img/02/114618065e090769543a2aa106aa66.jpg)
[leetcode] construct a binary tree by traversing the sequence from front to middle (continuous optimization)

Dinner a bang's Craft
![[leetcode] different binary search trees (recursion - recursion + memory search optimization - dynamic programming)](/img/ae/a6e7b8ebb098f631344024ffa80e76.jpg)
[leetcode] different binary search trees (recursion - recursion + memory search optimization - dynamic programming)

How to change the administrator's Avatar in win11? Win11 method of changing administrator image
![Md61 plan independent demand import Bapi [by daily dimension / dynamic template / dynamic field]](/img/28/2a4fd7f019f6528bd322c5e75ecaa7.png)
Md61 plan independent demand import Bapi [by daily dimension / dynamic template / dynamic field]

腾讯面试官曰Mysql架构的内部模块索引原理及性能优化思路谁会?
![[penetration test tool bee] how to install and use the XSS penetration test tool bee?](/img/c4/7fbb0bff07b548af81165b22002661.jpg)
[penetration test tool bee] how to install and use the XSS penetration test tool bee?
随机推荐
【HaaS Hands-On】全新视频节目上线 创意案例我们一起上手做 第一期E01: 物联网工程师 和你一起上手做遥控机械臂
[image processing] multi functional image processing system based on Matlab GUI [including Matlab source code 1876]
ACM教程 - 堆排序
SSH配置密钥登录时需要注意私钥是否设置了密码(passphrase)
Sparrowrecsys recurrence record
[leetcode] LRU cache
腾讯面试官曰Mysql架构的内部模块索引原理及性能优化思路谁会?
Fallible point--
Coordonnées des capitales provinciales des provinces chinoises
浅析直播间海量聊天消息的架构设计难点
The female programmer gives out a salary slip: the salary is high, but she feels she is 10 years old
Dinner a bang's Craft
[leetcode] restore binary search tree
Introduction and practice of QT tcp/udp network protocol (I) TCP communication
Switch case uses enumeration classes to compare
A brief history of neural network
Contest2902 - following Tang Kelian's programming: sequence structure question d: area 201502 question f: persistence of supporting college students in Ludian earthquake
flutter 状态管理
Our understanding of the industrial Internet may be more out of the existing logic
Data and electricity course design: circuit of full adder / subtractor