Cause of SQL Text & quot; ** SQL Text Not Available ** & quot; in the Oracle ash Report: oracleash

Source: Internet
Author: User

Cause of SQL Text "** SQL Text Not Available **" in the Oracle ash Report: oracleash


Guess: Why "** SQL Text Not Available **" appears in SQL Text in the Oracle ash report

The HVR data synchronization software is being tested today. Due to the large data volume (14 MB for one record, containing the lob field and 3000 records) and the IO is poor, as a result, synchronization (specifically HVR refresh) is slow.
During hvr synchronization, awr reports and ash reports are generated. awr reports are idle, as shown below:

 

Insert: the average wait time for log file parallel write to wait for the event is 49 ms, io is too bad.


In the Top SQL Statements section of the ash report, "** SQL Text Not Available **" is displayed, as follows:

 

 

The Top Sessions section of the ash report is as follows:

 

Then, use the following query to determine the SQL _id of the SQL statement being executed by the two sessions:

SQL> select sid, serial #, SQL _id, event from v $ session where (sid = '000000' and serial # = '000000 ') or (sid = '000000' and serial # = '000000 ');

Sid serial # SQL _ID EVENT
-------------------------------------------------------------------------------------------------
1074 230 9jnsccphbp7a9 SQL * Net message from client
1075 364 bvgbvn8a7313c SQL * Net message from client

SQL>


At this time, there is no record for querying the target table, that is, hvr is working and has not been submitted.

Therefore, I guess that the reason why "** SQL Text Not Available **" appears in SQL Text in the Oracle ash report is that it is Not submitted.

 

Add:

In awr, the two SQL _id "9jnsccphbp7a9" and "bvgbvn8a7313c" cannot be searched. The SQL statement 9jnsccphbp7a9 can be viewed by using the operating system process id in top.

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.