Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Why do I have multiple copies of identical sql reported by v$sql?
Hi, Tom,
You're only looking at the first 80 characters of the SQL statement. Try looking at SQL_TEXT in v$sql_text (or v$sql_text_with_newlines), but remember to concatinate the strings order by PIECE.
Yong Huang
yong321_at_yahoo.com
you wrote:
This is a single instance database, 8.0.5.0, parallelism degree 4 (used = only for recovery, all objects are degree 1).
There are 6 identical cursors, each with different execution counts = reported by v$sql.
sql> select sql_text text, decode(command_type,2,'INSERT'), executions
from v$sql
where command_type =3D 2
order by executions desc;
TEXT = DECODE EXECUTIONS -------------------------------------------------------------------------=------- ------ ----------
![]() |
![]() |