Direct path write wait event causes database hang, directhang

Source: Internet
Author: User

Direct path write wait event causes database hang, directhang

My colleague responded that the database seemed to have been suspended for a while more than 10 minutes and asked me to check whether there were any problems with the database.

The first response is to check whether there are any pending events in the current database, and the result is a direct path write wait event.

So I caught the ASH REPORT OF THE PROBLEM time period of 20 minutes and found that direct path write is the first place

 

Read the SQL statements and the result is these INSERT operations.

 

After viewing the table structure, the TICKETIMAGE column is of the BLOB type. It is assumed that the direct path write wait event occurs only when the database writes BLOB data to the table without being cached.

 

Due to the poor I/O performance of the local disk, I decided to disable the oracle feature and find the oracle-related parameters.

Alter system set "_ direct_path_insert_features" = 1;

 

After a period of observation, we found that the improvement was significant.

 

 

 

 

Appendix: SQL statement used to view implicit Oracle Parameters

SELECT x. ksppinm NAME, y. ksppstvl VALUE, x. ksppdesc describ
From sys. x $ ksppi x, SYS. x $ ksppcv y
WHERE x. inst_id = USERENV ('instance ')
AND y. inst_id = USERENV ('instance ')
AND x. indx = y. indx
AND x. ksppinm LIKE '% direct %'
/

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.