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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Wait event problems

RE: Wait event problems

From: Seefelt, Beth <Beth.Seefelt_at_TetleyUSA.com>
Date: Fri, 14 Jun 2002 07:53:28 -0800
Message-ID: <F001.0047E1E2.20020614075328@fatcity.com>

Excellent information! Thanks for taking the time to write it all down.

Beth

-----Original Message-----
Sent: Friday, June 14, 2002 10:42 AM
To: 'ORACLE-L_at_fatcity.com'
Cc: Seefelt, Beth

Well, with all the caveats that's a long and boring story, so I'll shorten
it up. ;)

  1. SDU/TDU values of 32768, as were specified by our 3rd-party vendor in their extremely non-OFA f'd-up install, are not valid.
  2. Specifying SDU/TDU in TNSNAMES.ORA (or ONAMES) is useless unless it's corresponding value is also in the server's LISTENER.ORA. If you don't specify the value in LISTENER.ORA, you will be using the default SDU value of 2048.
  3. Specifying SDU/TDU in a LISTENER.ORA will not work out-of-the-box in 8i. I've verified this thru a client trace. Apparently, in 8i, the automatic registry of an instance to the listener will overwrite any SDU/TDU values specified in the LISTENER.ORA. The workaround to override the auto registry, you must declare a bogus SERVICE_NAMES and LOCAL_LISTENER in the DB's init.ora and restart the instance.
  4. What value to set SDU? Test! On a TEST client set an SDU value in the TNSNAMES.ORA (see Oracle docs for how/where). Then, set the following in the client's SQLNET.ORA:
TRACE_LEVEL_CLIENT = SUPPORT
TRACE_FILE_CLIENT = sqlnet
TRACE_DIRECTORY_CLIENT = /some/directory
TRACE_UNIQUE_CLIENT = on

4a) If you aren't using TNSNAMES, make sure your NAMES.DIRECTORY_PATH in
the SQLNET.ORA starts with TNSNAMES.

5) Connect a test client. Do some work from this client, preferrably as
close to a "real" user as possible. Note that the tracefile created will
contain every bit from every packet sent to and from the client, as well as
all the overhead involved for debugging, so the file can grow large quick.
It only less than 5 minutes of testing to produce a 55MB trace file for us.

6) Disconnect the test client. Before running trcasst, you'll need to edit
the trace file in order to workaround a bug in trcasst. If you're Unix-y,
you can use this instead of trying to pull 50+MB into mem (VERY crude SED --
there's a much more elegant way of doing this!):

mv sqlnet_xxxx.trc t.t
sed -e 's/nspsend: /nspsend:/g' t.t >t.tt rm t.t
sed -e 's/nsprecv: /nsprecv:/g' t.tt >t.t rm t.tt
sed -e 's/nsprcvs: /nsprcvs:/g' t.t >t.tt rm t.t
rm sqlnet_xxxx.trc
mv t.tt sqlnet_xxxx.trc

The "rm"s are in there to reduce the amount of disk needed. PLEASE adjust
for your own environment! If you're using Winders, get CygWin to use sed
(or use any of a number of tools for search/replace).

7) trcasst -od sqlnet_xxxx.trc >sqlnet_xxxx.lis

8) Examine the .lis file for send/receive packet sizes. I dumped the output from a grep of the .lis file to MS Exhell to graph the send and recieve packets. It's easier for me to see the need for a larger SDU when
the graph shows a nice square wave pattern. The theory being that if SQL*Net is pushing the maximum SDU size several packets in a row (a nice,
flat horizontal line at the top of the graph), that the SDU could stand to
be larger so as to minimize the length of that line.

9) Repeat steps 5 thru 8 with different values of SDU, remembering to change both the client and the server, and to restart the listener after each change.

Anyone care to comment on this? This is pretty much just what I figured out
yesterday, so I'm interested to know of any "whoopses" I may have made. One
thing I'm not sure of is "How big is too big for an SDU value?".

HTH! GL! Happy Flag Day! :)

Rich Jesse                           System/Database Administrator
Rich.Jesse_at_qtiworld.com              Quad/Tech International, Sussex, WI
USA
> -----Original Message-----
> From: Seefelt, Beth [mailto:Beth.Seefelt_at_TetleyUSA.com]
> Sent: Thursday, June 13, 2002 7:28 PM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: Wait event problems
>
>
>
> Hi Rich,
>
> I'm curious, what value did you decide on for SDU? Let us know how it
> works out.
>
> Thanks,
>
> Beth
>
>
> -----Original Message-----
> Sent: Thursday, June 13, 2002 1:39 PM
> To: Multiple recipients of list ORACLE-L
>
>
> Hi Lee,
>
> I'm investigating a very similar problem on 8.1.6.0.0 on Solaris. So
> far,
> I've found out that the 3rd-party vendor who setup this debacle had
> inserted
> invalid values for SDU/TDU in tnsnames.ora on the client and
> listener.ora on
> the server. I'm correcting them now as we speak.
> (Incidentally, Oracle
> recommends NOT modifying TDU and gives no guidelines as to
> how to select
> a
> value.)
>
> Also, our clients are Java apps, which would be my guess as
> to the root
> of
> the problem. The clients just aren't fast enough to deal with the
> rather
> large overhead of Java. But I'm cautiously optimistic on the SDU/TDU
> fix...
>
> And www.fatcity.com doesn't want to respond, so we'll have to
> wait a bit
> to
> search the archives.
>
> GL!
>
> Rich Jesse System/Database Administrator
> Rich.Jesse_at_qtiworld.com Quad/Tech International,
> Sussex, WI
> USA
>
>
> -----Original Message-----
> Sent: Thursday, June 13, 2002 10:23 AM
> To: Multiple recipients of list ORACLE-L
>
>
> All,
>
> Oracle 8.0.5.0.0
> Tru64 v4.0f
>
> We are running a job and statspack reports show that our only problem
> (it is
> running like a dog) is the following
>
> SQL*Net more data from client.
>
> Done some reading and still none the wiser. Anyone else had
> this sort of
> problem and if so how did you get around it ??
>
> Regards
>
> Lee
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Seefelt, Beth
  INET: Beth.Seefelt_at_TetleyUSA.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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).
Received on Fri Jun 14 2002 - 10:53:28 CDT

Original text of this message

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