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: Please Help DB Buffer Cache Size

Re: Please Help DB Buffer Cache Size

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Wed, 17 Aug 2005 16:03:41 +0200
Message-ID: <ddvfmo$1hk$1@news2.zwoll1.ov.home.nl>


brijeshmathew_at_gmail.com wrote:

> Some of my queries are becoming slow, as the data in database is
> increasing. I shall explain one of the functions that shows a real slow
> down is below.
>
> ---------------------
> CREATE or replace FUNCTION getnumberofshowsforPeriod(lmno IN NUMBER,
> fromDate In Date, toDate In Date)
> RETURN NUMBER is
> cursor c1 is select count( distinct s_no) lCount from s
> where mno = lmno and valuedate between fromDate and toDate group by
> valuedate , tid;
>
>
> lNoOfShows Number(5);
>
> BEGIN
> lNoOfShows := 0 ;
> for lcur in c1 loop
> lNoOfShows := lNoOfShows + lCur.lCount;
> end loop;
>
> RETURN(lNoOfShows);
> END;
This is a joke, right?
Would you care to explain to yourself, loudly, what this code does?

Please tell me this is an example of code, written -or better yet: generated- in an offshore software shop.

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Wed Aug 17 2005 - 09:03:41 CDT

Original text of this message

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