Path: news.f.de.plusline.net!news-fra1.dfn.de!news.tele.dk!feed118.news.tele.dk!postnews.google.com!j27g2000cwj.googlegroups.com!not-for-mail
From: "joel garry" <joel-garry@home.com>
Newsgroups: comp.databases.oracle.server
Subject: Re: tkprof interpreatation question
Date: 2 Mar 2007 14:48:41 -0800
Organization: http://groups.google.com
Lines: 52
Message-ID: <1172875721.793222.283260@j27g2000cwj.googlegroups.com>
References: <1172786201.931581.143320@30g2000cwc.googlegroups.com>
NNTP-Posting-Host: 75.49.200.201
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1172875728 16431 127.0.0.1 (2 Mar 2007 22:48:48 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 2 Mar 2007 22:48:48 +0000 (UTC)
In-Reply-To: <1172786201.931581.143320@30g2000cwc.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 ISA2K4-OC1
Complaints-To: groups-abuse@google.com
Injection-Info: j27g2000cwj.googlegroups.com; posting-host=75.49.200.201;
   posting-account=YRNZ5wwAAAAg-yYjMFwy3FyWUbPiwNdq
Xref: news.f.de.plusline.net comp.databases.oracle.server:194896

On Mar 1, 1:56 pm, harvinde...@gmail.com wrote:
> Hi,
>
> >From the following tkprof output it looks like we are doing lot of
>
> fetch calls and also lot of misses during parsing and we have
> following 2 questions:
>
> 1) Which parameter we need to set at ODBC connection level to increase
> the rows/buffer size for rows per fetch. I can see the option at
> system dsn level but developers need to know the parameter name to
> specify as connection property?

http://download-west.oracle.com/docs/cd/B19306_01/server.102/b15658/app_odbc.htm#CIHGAAHJ
and http://download-west.oracle.com/docs/cd/B19306_01/server.102/b15658/app_odbc.htm#i1093897
and scroll down to fetch buffer size.

> 2)  What is the interpretation of the following:
> Misses in library cache during parse (Misses while looking for plan in
> library cache--Hard parse)

This is something you want to avoid.  The basic way to avoid it is to
use bind variables, so code that is sent through your odbc is
identical over many repetitions.  Many code generators wind up sending
statements identical except for literal equivalencies, which would be
a bad thing.  This is very well explained in the Tom Kyte books Daniel
mentioned, as well as on asktom.oracle.com.  CURSOR_SHARING=SIMILAR is
kind of half-baked for people stuck with vendor code, you are better
off making the code correct.

> Misses in library cache during execute (Misses while about to execute
> the plan and found it missing/invalid in library cache)
>

You can improve the efficiency of your code by reusing cursors to
reduce soft parses.

Review the Oracle Concepts manual library cache concepts, where these
things are explained.  You can also search the docs at
tahiti.oracle.com to find out a lot about specific initialization
parameters.

Different RDBMS engines work differently, so you can't expect to use
identical code in identical ways and have it work well everywhere.

jg
--
@home.com is bogus.
"If you don't mind the government listening to your phone calls, you
aren't having nearly enough phone sex." - Ralph Garman


