How to see entire longtext column in MySQL client
The query column on x$statement_analysis shows more than 1000 characters. This was big enough for the problem I was working on. I do not know if it has some limit.
Here is the max size on the production database that I was working on:
--------------
select max(length(query))
from x$statement_analysis
--------------

+--------------------+
| max(length(query)) |
+--------------------+
|               1747 |
+--------------------+
1 row in set (0.08 sec)

So the answer is to use sys.x$statement_analysis instead of sys.statement_analysis and your query text will not be as limited.
Bobby