当前位置:网站首页>Handling of high usage of Oracle undo
Handling of high usage of Oracle undo
2022-04-23 13:42:00 【Not dizzy yet】
In the near future , Frequent alarm of database monitoring of a customer UNDO High table space usage ; Maintenance personnel expand the table space by adding data files , Have already put UNDO Expand tablespace to 900GB+, There will still be alarms , Intervene in investigation and handling ~
1. see UNDO Configuration and related parameters
Normal configuration ,UNDO The retention time is 900 second . Corresponding implicit parameters are not configured , Database version 11.2.0.4
2. see UNDO Configuration of data file
The automatic expansion of data files has been turned off
3. see UNDO Segment usage
A lot of UNDO Segment is UNEXPIRED state ,ACTIVE There are very few states , Inquire about V$UNDOSTAT Parameters can be found TUNED_UNDORETENTION Automatically adjust to 20 More than 10000 seconds , Become UNDO Segment status UNEXPIRED Why . This is because UNDO Automatic management features AUM Resulting problems , Reference resources MOS file Automatic Tuning of Undo_retention Causes Space Problems ( file ID 420525.1),Automatic Tuning of Undo_retention Causes Space Problems ( file ID 420525.1) All explain this problem ; Generally, the new online system will consider shutting down alter system set "_undo_autotune" = false; Or set the maximum value of automatic adjustment alter system set "_highthreshold_undoretention" = 10800;. The default is used here , So the automatic adjustment ==TUNED_UNDORETENTION Automatically adjust to 20 More than 10000 seconds , Lead to UNDO Always for segment UNEXPIRED state .
check UNDO Segment status and automatically adjusted retention time command :
select BEGIN_TIME,
END_TIME,
MAXQUERYLEN,
MAXQUERYSQLID,
TUNED_UNDORETENTION
from V$UNDOSTAT Order By begin_time Desc;
check UNDO paragraph EXPIRED And so on :
col "Tablespace_Name" for a15
col "Status" for a10
col "Size(GB)" for 99999
col "SIZE(GB)" for 99999.99
SELECT seg.tablespace_name "Tablespace_Name",
round(ts.bytes/1024/1024/1024) "Size(GB)",
ue.status "Status", count(*) "Used Extents",
round(sum(ue.bytes)/1024/1024/1024, 2) "US_SIZE(GB)",
to_char(round(sum(ue.bytes)/ts.bytes*100, 2), 99.99) "Used Rate(%)"
FROM dba_segments seg, DBA_UNDO_EXTENTS ue,
(SELECT tablespace_name, sum(bytes) bytes
FROM dba_data_files GROUP BY tablespace_name) ts
WHERE ue.segment_NAME=seg.segment_NAME and seg.tablespace_name=ts.tablespace_name
GROUP BY seg.tablespace_name, ts.bytes, ue.status
ORDER BY seg.tablespace_name;
4. Solution
The system cannot be shut down due to its importance , Comprehensive consideration , Setting implicit parameters and other methods all have large actions ; Use adjustment UNDO Data file attributes : ALTER DATABASE DATAFILE '<datafile_flename>' AUTOEXTEND ON MAXSIZE <current_size>; After this setting V$UNDOSTAT.TUNED_UNDORETENTION No longer based on UNDO Table space usage calculation , But use (MAXQUERYLEN secs + 300) and UNDO_RETENTION The maximum of the two calculations , such UNDO Space is released , as follows :
版权声明
本文为[Not dizzy yet]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230601580083.html
边栏推荐
- [point cloud series] so net: self organizing network for point cloud analysis
- Super 40W bonus pool waiting for you to fight! The second "Changsha bank Cup" Tencent yunqi innovation competition is hot!
- TCP reset Gongji principle and actual combat reproduction
- Oracle defines self incrementing primary keys through triggers and sequences, and sets a scheduled task to insert a piece of data into the target table every second
- Oracle job scheduled task usage details
- The interviewer dug a hole for me: how many concurrent TCP connections can a single server have?
- Set Jianyun x Feishu Shennuo to help the enterprise operation Department realize office automation
- [tensorflow] sharing mechanism
- 为什么从事云原生开发需要学习容器技术
- Detailed explanation of constraints of Oracle table
猜你喜欢
[machine learning] Note 4. KNN + cross validation
[point cloud series] full revolutionary geometric features
MySQL and PgSQL time related operations
联想拯救者Y9000X 2020
Campus takeout system - "nongzhibang" wechat native cloud development applet
Opening: identification of double pointer instrument panel
[Journal Conference Series] IEEE series template download guide
顶级元宇宙游戏Plato Farm,近期动作不断利好频频
为什么从事云原生开发需要学习容器技术
SAP UI5 应用开发教程之七十二 - SAP UI5 页面路由的动画效果设置
随机推荐
[point cloud series] so net: self organizing network for point cloud analysis
Operations related to Oracle partition
[Journal Conference Series] IEEE series template download guide
[point cloud series] summary of papers related to implicit expression of point cloud
顶级元宇宙游戏Plato Farm,近期动作不断利好频频
Opening: identification of double pointer instrument panel
爱可可AI前沿推介 (4.23)
Detailed explanation and usage of with function in SQL
Lpddr4 notes
Riscv MMU overview
JS time to get this Monday and Sunday, judge the time is today, before and after today
Oracle creates tablespaces and modifies user default tablespaces
On the bug of JS regular test method
Common types and basic usage of input plug-in of logstash data processing service
Solve tp6 download error course not find package topthink / think with stability stable
Innobackupex incremental backup
[indicators] precision, recall
MySQL 8.0.11 download, install and connect tutorials using visualization tools
Storage scheme of video viewing records of users in station B
【重心坐标插值、透视矫正插值】原理以及用法见解