Blame it on the network

One of the most frustrating oracle errors we hate as DBA’s is the famous ora-3113 (often accompanied by ora-3114 and ora-12170). :)

Let’s take a scenario where we start hearing complaints about network errors and sporadic connection break downs from the end users.

The following example is taken from a windows 64bit and client windows 32 bit.

I’m hoping that the next procedure might help you better understand where the error stems from and debug it:

  • First step in debugging such a behavior is looking from which side the errors come from. It could come from the server’s side, the client’s side or both. If such error comes from the server side we would probably see some evidence in the alert log and observe some traces in the user dump destination. We should also take a look at the listener.log as it might also give us a hint.
  • In case the alert log is empty of errors and no traces were gathered in the udump directory we should check the client for errors. Now, we might see some network substrate (ns) related errors in the sqlnet.log such as  ” ns main err code: 12547″ but it does not point out the real issue as it indicates only a lost connection of the client. At this point we would want to trace the sql*net further.

In order to get some detailed information let’s add the para  meter

TRACE_LEVEL_CLIENT = 16 to the sqlnet.ora.

  • Our trace file is going to grow very fast and so enough disk space is necessary. If we do get an error when the trace is running it should look like the following:
(636) [13-NOV-2009 07:21:52:294] ntt2err: entry
(636) [13-NOV-2009 07:21:52:294] ntt2err: soc 7480 error - operation=5,
ntresnt[0]=517, ntresnt[1]=54, ntresnt[2]=0
(636) [13-NOV-2009 07:21:52:294] ntt2err: exit
(636) [13-NOV-2009 07:21:52:294] nttrd: exit
(636) [13-NOV-2009 07:21:52:294] nsprecv: error exit
(636) [13-NOV-2009 07:21:52:294] nserror: entry(636) [13-NOV-2009 07:21:52:294] nserror:
nsres:, op=68, ns=12547, ns2=12560; nt[0]=517, nt[1]=54, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
(636) [13-NOV-2009 07:21:52:294] nsrdr: error exit
(636) [13-NOV-2009 07:21:52:294] snsbitts_ts: entry
(636) [13-NOV-2009 07:21:52:294] snsbitts_ts: acquired the bit
(636) [13-NOV-2009 07:21:52:294] snsbitts_ts: normal exit
(636) [13-NOV-2009 07:21:52:294] snsbitcl_ts: entry
(636) [13-NOV-2009 07:21:52:294] snsbitcl_ts: normal exit
(636) [13-NOV-2009 07:21:52:294] snsbitts_ts: entry
(636) [13-NOV-2009 07:21:52:294] snsbitts_ts: acquired the bit
(636) [13-NOV-2009 07:21:52:294] snsbitts_ts: normal exit
(636) [13-NOV-2009 07:21:52:294] nsdo: nsctxrnk=0
(636) [13-NOV-2009 07:21:52:294] snsbitcl_ts: entry
(636) [13-NOV-2009 07:21:52:294] snsbitcl_ts: normal exit
(636) [13-NOV-2009 07:21:52:294] nsdo: error exit
(636) [13-NOV-2009 07:21:52:294] nioqrc: wanted 1 got 0, type 0
(636) [13-NOV-2009 07:21:52:294] nioqper: error from nioqrc
(636) [13-NOV-2009 07:21:52:294] nioqper: ns main err code: 12547
(636) [13-NOV-2009 07:21:52:294] nioqper: ns (2) err code: 12560
(636) [13-NOV-2009 07:21:52:294] nioqper: nt main err code: 517
(636) [13-NOV-2009 07:21:52:294] nioqper: nt (2) err code: 54
(636) [13-NOV-2009 07:21:52:294] nioqper: nt OS err code: 0
(636) [13-NOV-2009 07:21:52:294] nioqer: entry
(636) [13-NOV-2009 07:21:52:294] nioqer: incoming err = 12151
(636) [13-NOV-2009 07:21:52:294] nioqce: entry
(636) [13-NOV-2009 07:21:52:294] nioqce: exit
(636) [13-NOV-2009 07:21:52:294] nioqer: returning err = 3135
(636) [13-NOV-2009 07:21:52:294] nioqer: exit
(636) [13-NOV-2009 07:21:52:294] nioqrc: exit
(636) [13-NOV-2009 07:21:52:294] nioqds: entry
(636) [13-NOV-2009 07:21:52:294] nioqds: disconnecting...
(636) [13-NOV-2009 07:21:52:294] nsclose: entry
(636) [13-NOV-2009 07:21:52:294] nstimarmed: entry
(636) [13-NOV-2009 07:21:52:294] nstimarmed: no timer allocated
(636) [13-NOV-2009 07:21:52:294] nstimarmed: normal exit
  • The highlighted line is what we need to focus on. The actual error is the ntt2error and the following arguments  – operation=5, ntresnt[0]=517, ntresnt[1]=54, ntresnt[2]=0 mean that a the network is stressed.

The error means that a packet being sent from the client does not receive ACK for 93 seconds, which is the default of the parameter TcpMaxDataRetransmissions

(look at Microsoft TechNet for further details –  http://technet.microsoft.com/en-us/library/cc938210.aspx ). The retransmission mechanism works in the way that when a packet is being send it waits for 3 seconds for ack before resending it. If it does not receive ack it will wait 3 seconds times 2, then times 4, times 8, and times 16 (5 times total).

The workaround for a busy network is to increase the default of the TcpMaxDataRetransmissions parameter. This parameter is located in the registry under

HKEY_LOCAL_MACHINE > system > CurrentControlSet > Services > Tcpip > Parameters

If the parameter does not exsist, just add it but bear in mind that adjusting the parameter can lead to a longer timeout wait rather than actually solve the problem.

So what you really need to do is to get the guy with the sniffer over and have him search for the problem.

Good luck!

191 comments

  1. Surisan1 says:

    I want to quote your post in my blog. It can?
    And you et an account on Twitter?

  2. LEO says:

    PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Pillspot.org. Herbal-supplements@buy.online” rel=”nofollow”>.…

    Categories: Womens Health.Stomach.Anxiety/Sleep Aid.Antidepressants.Weight Loss.Eye Care.Mental HealthBlood Pressure/Heart.Antidiabetic.Antibiotics.Skin Care.Pain Relief.Anti-allergic/Asthma.Stop SmokingAntiviral.Vitamins/Herbal Supplements.Mens H…

  3. Alexander7 says:

    buy@generic.LEVITRA” rel=”nofollow”>…

    Need cheap generic LEVITRA?…

  4. TERRENCE says:

    Purchase@Discount.Coral.Calcium” rel=”nofollow”>..

    Buyit now…

  5. SALVADOR says:

    Cheap@Coral.Calcium.Online” rel=”nofollow”>..

    Buygeneric meds…

  6. DUSTIN says:

    Get@Coral.Calcium.Online” rel=”nofollow”>..

    Buygeneric drugs…

  7. EDUARDO says:

    Buy@Cheap.Abana” rel=”nofollow”>..

    Buygeneric pills…

  8. BRANDON says:

    Buy@Discount.Abana” rel=”nofollow”>..

    Buyno prescription…

  9. PERRY says:

    Order@Abana.Online” rel=”nofollow”>…

    Buywithout prescription…

  10. LEWIS says:

    Cheap@Abana.Online” rel=”nofollow”>..

    Buynow it…

  11. ROY says:

    Buy@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>…

    Buywithout prescription…

  12. GUY says:

    Buy@Acai.Online” rel=”nofollow”>.

    Buywithout prescription…

  13. CHARLIE says:

    Buy@Discount.Acai” rel=”nofollow”>..

    Buynow it…

  14. RUSSELL says:

    Purchase@Discount.Acai” rel=”nofollow”>..

    Buywithout prescription…

  15. SALVADOR says:

    Buy@Acai.Without.Prescription” rel=”nofollow”>…

    Buynow…

  16. WALLACE says:

    Buy@Generic.Acai.Without.Prescription” rel=”nofollow”>…

    Buygeneric drugs…

  17. EDUARDO says:

    Buy@Cheap.Coral.Calcium” rel=”nofollow”>.

    Buynow it…

  18. RONALD says:

    Buy@Cheap.Coral.Calcium” rel=”nofollow”>…

    Buygeneric meds…

  19. MIKE says:

    Buy@Cheap.Coral.Calcium” rel=”nofollow”>.

    Buydrugs without prescription…

  20. JAMES says:

    Purchase@Coral.Calcium.Online” rel=”nofollow”>..

    Buygeneric meds…

  21. PERRY says:

    Purchase@Discount.Coral.Calcium” rel=”nofollow”>…

    Buygeneric pills…

  22. LESLIE says:

    Buy@Cheap.Abilify” rel=”nofollow”>…

    Buygeneric pills…

  23. KURT says:

    Buy@Acai.Online” rel=”nofollow”>.

    Buywithout prescription…

  24. LANCE says:

    Buy@Acai.Online” rel=”nofollow”>…

    Buyno prescription…

  25. DENNIS says:

    Buy@Acai.Online” rel=”nofollow”>.

    Buyit now…

  26. TRACY says:

    Buy@Cheap.Acai” rel=”nofollow”>…

    Buywithout prescription…

  27. FELIX says:

    Buy@Discount.Acai” rel=”nofollow”>…

    Buyit now…

  28. RALPH says:

    Buy@Discount.Acai” rel=”nofollow”>…

    Buygeneric drugs…

  29. ALFRED says:

    Order@Discount.Acai” rel=”nofollow”>…

    Buynow…

  30. DONALD says:

    Order@Discount.Acai” rel=”nofollow”>…

    Buyit now…

  31. JACK says:

    Order@Generic.Acai” rel=”nofollow”>..

    Buydrugs without prescription…

  32. VICTOR says:

    Order@Acai.Without.Prescription” rel=”nofollow”>.

    Buygeneric drugs…

  33. RICK says:

    Order@Energy.Boost.Online” rel=”nofollow”>.…

    Buygeneric drugs…

  34. MATHEW says:

    Purchase@Cheap.Energy.Boost” rel=”nofollow”>.…

    Buyno prescription…

  35. CARL says:

    Buy@Accupril.Online” rel=”nofollow”>.…

    Buygeneric meds…

  36. BOB says:

    Order@Accupril.Online” rel=”nofollow”>.…

    Buygeneric drugs…

  37. BILLY says:

    Get@Accupril.Online” rel=”nofollow”>.…

    Buygeneric drugs…

  38. BYRON says:

    Buy@Discount.Accutane” rel=”nofollow”>.…

    Buynow it…

  39. KENNY says:

    Purchase@Cheap.Accutane” rel=”nofollow”>.…

    Buynow it…

  40. WILLIAM says:

    Buy@Aciphex.Online” rel=”nofollow”>.…

    Buygeneric pills…

  41. ADAM says:

    Buy@Generic.Aciphex.Without.Prescription” rel=”nofollow”>.…

    Buyno prescription…

  42. RUBEN says:

    Buy@Aciphex.20mg” rel=”nofollow”>.…

    Buygeneric meds…

  43. EUGENE says:

    Generic@Aciphex.20mg.Without.Prescription” rel=”nofollow”>…

    Buyno prescription…

  44. RODNEY says:

    Buy@Actonel.35mg” rel=”nofollow”>..

    Buygeneric drugs lzt…

  45. DARYL says:

    Purchase@Generic.Actonel.35mg” rel=”nofollow”>..

    Buygeneric drugs krg…

  46. VICTOR says:

    Buy@Discount.Actoplus.Met” rel=”nofollow”>..

    Buygeneric pills zdg…

Post a comment

Copyright © OraInsights
Ido Ben Zeev

Built on Notes Blog Core / Powered by WordPress
Enhanced by Lucid