Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Very long queries in V$SQLTEXT
Could you be more specific about
what you think is nonsense ?
Discoverer (except perhaps for the very newest versions) write the most appallingly unreadable SQL, along the lines of:
select
t1100012.c19350011 as "meaningful name", t1100012.c19350012 as "another name", t1101322,c17633993 as "yet another name"from
(select
col1 as "c19350011", col2 as "c19350012" from tableX
etc.
Every column gets a meaningless alias
Every table become an inline view of itself
Every join condition has at least two sets of brackets.
V$SQLTEXT really does tell it the way it is.
--
Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk
Connor McDonald wrote in message <383BE051.68D7_at_yahoo.com>...
>I'm at site where there seems to be competition to write the longest
>SQL's in the world. Once they get above 1000 chars, the usefulness of
>V$SQL and V$SQLAREA disappears.
>
>So I've been using V$SQLTEXT - which is fine except for all queries
>created by Oracle Discoverer. In these cases, V$SQLTEXT returns
>basically nonsense.
>
>Can anyone assist ? Posts of samples available...
>
>--
Received on Wed Nov 24 1999 - 15:22:43 CST