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.