当前位置:网站首页>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] summary of papers related to implicit expression of point cloud
- Special window function rank, deny_ rank, row_ number
- [multi screen interaction] realize dual multi screen display II: startactivity mode
- Tangent space
- Aicoco AI frontier promotion (4.23)
- SHA512 / 384 principle and C language implementation (with source code)
- Innobackupex incremental backup
- Oracle database recovery data
- Detailed explanation of constraints of Oracle table
- 为什么从事云原生开发需要学习容器技术
猜你喜欢
联想拯救者Y9000X 2020
面试官给我挖坑:单台服务器并发TCP连接数到底可以有多少 ?
Ai21 labs | standing on the shoulders of giant frozen language models
TIA博途中基於高速計數器觸發中斷OB40實現定點加工動作的具體方法示例
How do ordinary college students get offers from big factories? Ao Bing teaches you one move to win!
Usereducer basic usage
Why do you need to learn container technology to engage in cloud native development
Lpddr4 notes
[point cloud series] multi view neural human rendering (NHR)
校园外卖系统 - 「农职邦」微信原生云开发小程序
随机推荐
Comparison and summary of applicable scenarios of Clickhouse and MySQL database
[indicators] precision, recall
Storage scheme of video viewing records of users in station B
[point cloud series] deepmapping: unsupervised map estimation from multiple point clouds
Operations related to Oracle partition
Oracle database recovery data
Interface idempotency problem
Special window function rank, deny_ rank, row_ number
"Xiangjian" Technology Salon | programmer & CSDN's advanced road
QT calling external program
Common types and basic usage of input plug-in of logstash data processing service
Part 3: docker installing MySQL container (custom port)
Launcher hides app icons that do not need to be displayed
TIA博途中基于高速计数器触发中断OB40实现定点加工动作的具体方法示例
为什么从事云原生开发需要学习容器技术
[tensorflow] sharing mechanism
Isparta is a tool that generates webp, GIF and apng from PNG and supports the transformation of webp, GIF and apng
[point cloud series] full revolutionary geometric features
[point cloud series] multi view neural human rendering (NHR)
PG library checks the name