let me be clearer. I need to return an estimate of the number of rows for
'pagination'. The user will page through 25 rows a time, but wants an
estimate on the total number of rows returned. I want to avoid counts.

tom kytes book says to use v$sql_plan, but how do i get my exact query? Id
prefer to do it without table joins. Since I have a very strict SLA.

dbms_xplan is returning the whole thing. I just want the cardinality and I
have to put it in a variable.
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Monday, December 29, 2003 4:59 PM


> i need to return the cardinality estimate to the user as a number. how do
i do that?
> >
> > From: Stephane Faroult <[EMAIL PROTECTED]>
> > Date: 2003/12/29 Mon PM 04:29:26 EST
> > To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
> > Subject: Re: getting estimate of result set from v$sql_plan
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > can someone send me the query I use to hit v$sql_plan to get my
estimated cardinality for a query?
> > >
> > >
> >
> > @$ORACLE_HOME/rdbms/admin/utlxpls.sql
> > or
> > $ORACLE_HOME/rdbms/admin/utlxplp.sql if you have parallelism.
> > --
> > Regards,
> >
> > Stephane Faroult
> > Oriole Software
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > --
> > Author: Stephane Faroult
> >   INET: [EMAIL PROTECTED]
> >
> > Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> > San Diego, California        -- Mailing list and web hosting services
> > ---------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from).  You may
> > also send the HELP command for other information (like subscribing).
> >
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: <[EMAIL PROTECTED]
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Ryan
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to