How to Disable Parallel Transaction Recovery When Parallel Txn Recovery is Active (Doc ID 238507.1)
来源:互联网 发布:菲尔琼斯知乎 编辑:程序博客网 时间:2024/05/22 06:58
APPLIES TO:
Oracle Database - Enterprise Edition - Version 8.1.5.0 to 9.2.0.3 [Release 8.1.5 to 9.2]Oracle Database - Personal Edition - Version 8.1.5.0 to 9.2.0.3 [Release 8.1.5 to 9.2]
Information in this document applies to any platform.
SYMPTOMS
Parallel Transaction Recovery is taking too long.
You can use V$TRANSACTION USED_UBLK to estimate how long the rollback is going
to take but there is no formula for this. If you shutdown the database after
rollback has started, it will begin where it left off.
You can also look at V$FAST_START_TRANSACTIONS for UNDOBLOCKSDONE
versus UNDOBLOCKSTOTAL.
CHANGES
A large transaction got killed or rolled back.
CAUSE
There are cases where parallel transaction recovery is not as fast as serial
transaction recovery, because the pq slaves are interfering with each other.
This depends mainly on the type of changes that need to be made during rollback
and usually may happen when rolling back INDEX Updates in parallel.
SOLUTION
Dynamically switch from parallel recovery to serial. If you are in a clustered
environment you will need to do this on all instances at the same time:
1. Find SMON's Oracle PID:
Example:
PID PROGRAM
---------- ------------------------------------------------
6 oracle@stsun7 (SMON)
2. Disable SMON transaction cleanup:
SQL> oradebug event 10513 trace name context forever, level 2
3. Kill the PQ slaves that are doing parallel transaction recovery.
You can check V$FAST_START_SERVERS to find these.
e.g.
then kill these processes from the OS level with : kill -9 n
where n is the SPID's returned from the previous statement .
4. Turn off fast_start_parallel_rollback:
5. Re-enable transaction recovery as it was disabled in step 2.
SQL> oradebug event 10513 trace name context off
- Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Enterprise Edition > RDBMS
- Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Personal Edition > RDBMS
- How to Disable Parallel Transaction Recovery When Parallel Txn Recovery is Active (Doc ID 238507.1)
- Database Hangs Because SMON Is Taking 100% CPU Doing Transaction Recovery (Doc ID 414242.1)wy
- Master Note: Troubleshooting Database Transaction Recovery (Doc ID 1494886.1)
- What is a Flash Recovery Area and how to configure it ? (文档 ID 305648.1)
- What is a Flash Recovery Area and how to configure it ? (文档 ID 305648.1)
- How to Setup Active DataGuard on Exadata (Doc ID 1580796.1)
- Encountering ORA-01153: an incompatible media recovery is active When Starting Up Phycial Standby
- How to flash the recovery
- How To Mod: BOOT & RECOVERY
- How to create recovery image
- Parallel Capabilities of Oracle Data Pump (Doc ID 365459.1)
- Parallel
- How to Check and Enable/Disable Oracle Binary Options (Doc ID 948061.1)
- How to Configure RMAN I/O Block Size to Improve Backup and Recovery Performance [ID 107213.1]
- How to Configure RMAN I/O Block Size to Improve Backup and Recovery Performance [ID 107213.1]
- How to Configure RMAN I/O Block Size to Improve Backup and Recovery Performance [ID 107213.1]
- How to change Flash Recovery Area to a new location ? (文档 ID 305651.1)
- Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005
- Android setContentView、LayoutInflater、findViewById
- webView loadData 中文乱码问题
- PHP多维数组的递归遍历
- LeetCode: Rotate List
- Java学习--Class.forName的作用是什么
- How to Disable Parallel Transaction Recovery When Parallel Txn Recovery is Active (Doc ID 238507.1)
- HTTP Status Code速查
- struts2 poi导出excel实例代码下载
- 慢慢的让自己习惯这样的节奏就可以了
- 微信公共服务平台开发(.Net 的实现)4-------语音识别
- 收集的几个javascript的date和array扩展
- String与InputStream相互转换
- 启动postfix服务失败
- 剑指offer面试题4拓展——已排序数组的合并