Reason for Apparently Incorrect or Null Sql_id in v$sql
(Doc ID 406452.1)
Last updated on FEBRUARY 19, 2019
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 220.127.116.11 [Release 10.2 to 11.2]
Information in this document applies to any platform.
The v$sql view and similar v$sql* views (eg: v$sqlarea) display values that are apparently wrong:
1. there is no sql information in v$sql and the other views (v$sqlarea), ie sql_id, sql_address, sql_hash_value are null.
2. the information in the view, ie sql_text does not follow the sql trace file, being the same, even when the trace file shows that the currently running query has changed.
This situation is particular to the 10g release and higher. For systems migrated from lower releases it may be even more obvious, especially when user defined tools rely on these columns.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document