All below SQL results are visible throw usual TDBGrid.
Just execute simple select:
-----------------------------------------
SELECT piece,sql_text
FROM v$sqltext_with_newlines q, v$session s
WHERE sid in (select sid from v$session where s.last_call_et = 0 and username = user)
and q.address = s.sql_address AND q.hash_value = s.sql_hash_value
ORDER BY piece
-------------------------------------------
In the result you can see truncated strings:
for example line:
"v$sqltext_with_newlines q, v$sessi"
Instead line (last char truncated):
"v$sqltext_with_newlines q, v$session s"
If you execute this example in BDE or sqlplus then results will be OK.
I don't no why DOA truncate such many characters from the end of line as there are quantity carriage return (CR) characters.