主说明:自动Undo管理的故障排除指南(Doc ID 1579081.1)
Master Note: Troubleshooting guide for Automatic Undo Management (Doc ID 1579081.1)
APPLIES TO:
Oracle Database - Enterprise Edition - Version 9.2.0.1 to 12.1.0.1 [Release 9.2 to 12.1]
Information in this document applies to any platform.
PURPOSE
This is a Master Note for troubleshooting the various issues reported on Undo Management. This document provides a brief explanation for the various issues and the list of diagnostic information to be collected before raising a Service Request with Oracle Support.
这是一个主要说明,用于对Undo Management中报告的各种问题进行故障排除。本文档简要说明了各种问题,并在通过Oracle Support提出服务请求之前要收集的诊断信息列表。
TROUBLESHOOTING STEPS
There are various Undo related issues reported. Refer : Assistant: Get Assistance to Understand and Solve Oracle Undo Management issues (Doc ID 1575667.2)
报告了各种与Undo相关的问题。请参阅:Assistant: Get Assistance to Understand and Solve Oracle Undo Management issues (Doc ID 1575667.2)
1- Please provide the following diagnostic information if the issue persists: 如果问题仍然存在,请提供以下诊断信息:
a. Undo parameters Undo参数
select nam.ksppinm NAME, val.KSPPSTVL VALUE
from x$ksppi nam, x$ksppsv val
where nam.indx = val.indx
and (nam.ksppinm like '%undo%' or
nam.ksppinm in ('_first_spare_parameter', '_smu_debug_mode'))
order by 1;
示例:
col NAME for a35
col VALUE for a50
select nam.ksppinm NAME, val.KSPPSTVL VALUE
from x$ksppi nam, x$ksppsv val
where nam.indx = val.indx
and (nam.ksppinm like '%undo%' or
nam.ksppinm in ('_first_spare_parameter', '_smu_debug_mode'))
order by 1; NAME VALUE
----------------------------------- --------------------------------------------------
_collect_undo_stats TRUE
_disable_undo_tablespace_alerts FALSE
_enable_default_undo_threshold TRUE
_first_spare_parameter
_flush_undo_after_tx_recovery TRUE
_gc_undo_affinity TRUE
_gc_undo_block_disk_reads TRUE
_highthreshold_undoretention 4294967294
_in_memory_undo TRUE
_lm_spare_undo 0
_optimizer_undo_changes FALSE
_optimizer_undo_cost_change 11.2.0.4
_smon_undo_seg_rescan_limit 10
_smu_debug_mode 0
_undo_autotune TRUE
_undo_block_compression TRUE
_undo_debug_mode 0
_undo_debug_usage 0
_verify_undo_quota FALSE
undo_management AUTO
undo_retention 900
undo_tablespace UNDOTBS1 22 rows selected.
b. What are the various statuses for Undo Extents? Undo Extents的各种状态是什么?
SELECT DISTINCT STATUS, SUM(BYTES)/1024/1024 MB, COUNT(*) FROM DBA_UNDO_EXTENTS GROUP BY STATUS;
示例:
SQL> SELECT DISTINCT STATUS, SUM(BYTES)/1024/1024 MB, COUNT(*) FROM DBA_UNDO_EXTENTS GROUP BY STATUS; STATUS MB COUNT(*)
--------- ---------- ----------
ACTIVE 2162.25 408
EXPIRED 18233.75 16146
UNEXPIRED 27083.25 21389
c. Tuned Retention 调整保留
SELECT MAX(TUNED_UNDORETENTION), MAX(MAXQUERYLEN), MAX(NOSPACEERRCNT), MAX(EXPSTEALCNT) FROM V$UNDOSTAT;
SELECT BEGIN_TIME, END_TIME, TUNED_UNDORETENTION, MAXQUERYLEN, MAXQUERYID, NOSPACEERRCNT, EXPSTEALCNT, UNDOBLKS, TXNCOUNT FROM V$UNDOSTAT;
示例:
SQL> SELECT BEGIN_TIME, END_TIME, TUNED_UNDORETENTION, MAXQUERYLEN, MAXQUERYID, NOSPACEERRCNT, EXPSTEALCNT, UNDOBLKS, TXNCOUNT FROM V$UNDOSTAT; BEGIN_TIME END_TIME TUNED_UNDORETENTION MAXQUERYLEN MAXQUERYID NOSPACEERRCNT EXPSTEALCNT UNDOBLKS TXNCOUNT
----------------- ----------------- ------------------- ----------- ------------- ------------- ----------- ---------- ----------
20191129 15:22:20 20191129 15:27:42 1420 699 0rc4km05kgzb9 0 0 0 4
20191129 15:12:20 20191129 15:22:20 1118 397 0rc4km05kgzb9 0 0 1 83
20191129 15:02:20 20191129 15:12:20 1717 997 0rc4km05kgzb9 0 0 0 13
... ...
20191129 09:42:20 20191129 09:52:20 1795 953 0rc4km05kgzb9 0 3 129 654
20191129 09:32:20 20191129 09:42:20 1190 348 0rc4km05kgzb9 0 10 5446 540 36 rows selected.
d. The size details and auto-extend setting for the UNDO Tablespace UNDO表空间的大小详细信息和自动扩展设置
COL AUTOEXTENSIBLE FORMAT A14
SELECT FILE_ID, BYTES/1024/1024 AS "BYTES (MB)", MAXBYTES/1024/1024 AS "MAXBYTES (MB)", AUTOEXTENSIBLE FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='&UNDOTBS';
示例:
SQL> COL AUTOEXTENSIBLE FORMAT A14
SQL> SELECT FILE_ID, BYTES/1024/1024 AS "BYTES (MB)", MAXBYTES/1024/1024 AS "MAXBYTES (MB)", AUTOEXTENSIBLE FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='&UNDOTBS';
Enter value for undotbs: UNDOTBS1 FILE_ID BYTES (MB) MAXBYTES (MB) AUTOEXTENSIBLE
---------- ---------- ------------- --------------
3 70 32767.9844 YES
e. Upload the alert log file from the startup.
2- Provide the query outputs from the "diagnostic information" section of Doc ID 1579081.1"
提供来自Doc ID 1579081.1的"diagnostic information"部分的查询输出
主说明:自动Undo管理的故障排除指南(Doc ID 1579081.1)的更多相关文章
- 故障排除指南(TSG)-ORA-01552: Cannot Use System Rollback Segment for Non-System Tablespace (Doc ID 1579215.1)
Troubleshooting Guide (TSG) - ORA-01552: Cannot Use System Rollback Segment for Non-System Tablespac ...
- ORA-01555 When Max Query Length Is Less Than Undo Retention, small or 0 Seconds (Doc ID 1131474.1)
ORA-01555 When Max Query Length Is Less Than Undo Retention, small or 0 Seconds (Doc ID 1131474.1) A ...
- Longhorn 云原生容器分布式存储 - 故障排除指南
内容来源于官方 Longhorn 1.1.2 英文技术手册. 系列 Longhorn 是什么? Longhorn 云原生容器分布式存储 - 设计架构和概念 Longhorn 云原生容器分布式存储 - ...
- 详细故障排除步骤:针对 Azure 中到 Windows VM 的远程桌面连接问题
本文提供详细的故障排除步骤,用于为基于 Windows 的 Azure 虚拟机诊断和修复复杂的远程桌面错误. Important 若要消除更常见的远程桌面错误,请务必先阅读远程桌面的基本故障排除文章, ...
- Master Note: Undo 空间使用率高 (Doc ID 1578639.1)
Master Note: High Undo Space Usage (Doc ID 1578639.1) APPLIES TO: Oracle Database Cloud Schema Servi ...
- Undo 相关的等待事件和已知问题 (Doc ID 1575701.1)
Undo Related Wait Events & Known Issues (Doc ID 1575701.1) APPLIES TO: Oracle Database - Enterpr ...
- Automatic Tuning of Undo Retention 常见问题 (Doc ID 1579779.1)
Automatic Tuning of Undo Retention Common Issues (Doc ID 1579779.1) APPLIES TO: Oracle Database - En ...
- 如何为 Automatic Undo Management 调整 UNDO Tablespace 的大小 (Doc ID 262066.1)
How To Size UNDO Tablespace For Automatic Undo Management (Doc ID 262066.1) APPLIES TO: Oracle Datab ...
- Script - 检查当前的undo配置和建议设置 (Doc ID 1579035.1)
Script - Check Current Undo Configuration and Advise Recommended Setup (Doc ID 1579035.1) APPLIES TO ...
随机推荐
- python的匿名函数
在Python,有两种函数,一种是def定义,一种是lambda函数. lambda函数是Python一种生成函数对象的表达式形式.匿名函数通常是创建了可以被调用的函数,它返回了函数,而并没有将这个函 ...
- Spring IOC初始化深度解析
1.前言 本文是基于JAVA配置方法对Spring IOC进行分析,掌握Spring IOC初始化流程对于我们更好的使用Spring.学习Spring还是很有帮助的,本文所使用的的Spring版本为5 ...
- 查找节点(getAttribute())
getAttribute():方法将返回一个给定元素的一个给定属性节点的值: attributeValue = element.getAttribute(attributeName); 给定属性的名字 ...
- P2415 集合求和(一道洛谷好题鸭)(虽然可以水过,但有必研究DP)
此题坑点: 结果必须要用long long存,int存不下 如果想要像cout<<sum*pow(2,num-1)这样在输出时计算会错:long long在计算过程被隐式转换成了doubl ...
- 【Android - 进阶】之Animator属性动画
1.概述 在3.0系统之前,Android给我们提供了逐帧动画Frame Animation和补间动画Tween Animation两种动画: 逐帧动画的原理很简单,就是将一个完整的动画拆分成一张张单 ...
- 你知道 http 响应头中的 ETag 是如何生成的吗
关于 etag 的生成需要满足几个条件 当文件不会更改时,etag 值保持不变.所以不能单纯使用 inode 便于计算,不会特别耗 CPU.这样子 hash 不是特别合适 便于横向扩展,多个 node ...
- mac 命令记录
1. 安装 mysqlworkbench brew search mysql brew tap caskroom/cask brew cask search mysql brew cask insta ...
- [TimLinux] JavaScript 引用类型——Date
1. Date var now = new Date(); // 不传参数,获取当前日期.时间. now.getDay(); // 日期 now.getMonth(); // 月份 now.getFu ...
- 2018HDU多校训练-3-Problem G. Interstellar Travel
链接:http://acm.hdu.edu.cn/showproblem.php?pid=6325 Interstellar Tra ...
- 小程序如何支持使用 async/await
下载 regenerator-runtime npm i regenerator-runtime 如何使用 在小程序中,不认识 node_modules 文件夹,无法通过以下方法来直接找到包文件 im ...