Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: v$sqlarea doesn't show full query

Re: v$sqlarea doesn't show full query

From: <fitzjarrell_at_cox.net>
Date: 6 Feb 2007 06:47:09 -0800
Message-ID: <1170773229.443313.272550@a75g2000cwd.googlegroups.com>


On Feb 6, 1:09 am, "Steve Robin" <ocma..._at_gmail.com> wrote:
> I saw one query doing huge physical reads. But it is not complete as
> it has more characters then 1000. Now I need to tune that but I don't
> have full query, only first 999 characters. We DBAs cann't contact
> developers for this query. it is internally query by the software they
> are using. Is it possible to get full query from database.
>
> Oracle Version : 9.2.0.8
> Platform : Windows XP

You need to use v$sqltext to get the full query text, not v$sqlarea.

select t.sql_text
from v$sqltext t join v$sqlarea a
on a.address = t.address
order by t.address, t.piece;

You can, of course, limit this by other criteria to return only the 'suspect' query text you want to investigate.

David Fitzjarrell Received on Tue Feb 06 2007 - 08:47:09 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US