1. database version oracle11.2.0.3.02. When the problem occurs, when the ash report is generated using ashrpt. SQL, there is no response at rest after the start time is entered and the report file storage path is specified. SQL @? Rdbmsadminashrpt. SQL ....usingthereportnamehomeoracleashrpt_4240802_1932.html Sum
1. database version: oracle 11.2.0.3.0 2. Problem description when you use ashrpt. SQL to generate an ash report, there is no response after you enter the completion start time and specify the report file storage path and file name. SQL @? /Rdbms/admin/ashrpt. SQL ...... the report name/home/oracle/ashrpt_1_0802_1932.html Sum
1. database version
Oracle 11.2.0.3.0
2. Problem
When you use ashrpt. SQL to generate an ash report, there is no response after you enter the start time, specify the report file storage path, and the file name.
|
SQL> @? /Rdbms/admin/ashrpt. SQL
......
Using the report name
/Home/oracle/ashrpt_20170802_1932.html
Summary of All User Input
-------------------------
Format: HTML
DB Id: 2024181297
Inst num: 1
Begin time: 02-Aug-14 19:22:34
End time: 02-Aug-14 19:32:34
Slot width: Default
Report targets: 0
Report name:/home/oracle/ashrpt_20170802_1932.html
It's not moving here ...... |
3. Problem Analysis 3.1. view what the ashrpt session is waiting
|
SQL> select sid, program, event from v $ session where sid = 1590;
SID PROGRAM EVENT
Bytes -----------------------------------------------------------------------------------------------------
1590 sqlplus @ nosql1 (TNS V1-V3)Control file sequential read |
Wait for the event to continue to "control filesequential read" 3.2, view the optimizer_mode Parameter Setting Value
|
SQL> show parameter optimizer_mode
NAME TYPE VALUE
Bytes --------------------------------------------------------------------------------------------------
Optimizer_mode stringFIRST_ROWS_10 |
It is found that optimizer_mode is modified to first_rows_10 instead of the default value all_rows.
3.3 preliminary analysis summary
Based on the abnormality of the preceding waiting event and the modified value of optimizer_mode, it is suspected that it may be an oracle bug.
4. Verification of analysis results
On metalink, find the article13794366.8In ORACLE 11.2.0.2 and 11.2.0.3, the BUG of OPTIMIZER_MODE = FIRST_ROWS_N is fixed in 11.2.0.4.
Description
ASH reports can take a really long to complete if the optimizer_mode parameter
is set to FIRST_ROWS_N
Rediscovery Notes
ASH reports will take a long time to complete when optimizer_mode parameter is
set to FIRST_ROWS_N
Workaround
None |
5. Solution
In order not to affect other aspects of the system by modifying the optimizer_mode parameter, select the "all_rows" method at the session level when creating the ash report to generate the ash report successfully.
|
SQL>Alter session set optimizer_mode = 'all _ rows ';
SQL> @? /Rdbms/admin/ashrpt. SQL
......
End of Report
Report written to/home/oracle/ashrpt_1_0802_1932.html |
The Ash report is generated successfully.
Author: LI Junjie (Network Name: Step-by-Step), engaged in "system architecture, operating system, storage device, database, middleware, application" six levels of systematic performance optimization work
Join the system performance optimization professional group to discuss performance optimization technologies. GROUP: 258187244