473,760 Members | 9,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mysteriously dropped connection and deciphering the trace

Hi all,

I have an application that uses Oracle's JDBC thin driver 9.0.x to
have a nice, friendly chat with 8.1.x database. During this exchange
the server rudely interrupts the conversation and causes the
application to fubar. The driver reports this as 'Connection reset'
(IOException) without any error numbers. The server is hosted by a 3rd
party in one of those "controlled " environments so my first guess is
network/tx timeout but wouldn't it say so? This is 100% reproducible
and always fails in the same place. The line of code corresponding to
that reported in JDBC driver stack trace does nothing but unset the
auto commit. If this is indeed a case of one particular transaction
timing out on commit, how do I tell if this is indeed the case? I
can't do a client-side SQL*Net trace with the thin driver and
server-side SQL trace doesn't tell me anything interesting.

Here's the relevant part of the server-side SQL*Net trace (IP address
changed to protect the innocent):
nigini: Count in NI global area now: 1
nigini: Count in NI global area now: 1
nrigbni: Unable to get data from navigation file tnsnav.ora
niotns: Not enabling dead connection detection.
nlpcaini: No process parameters set
nsinherit: connecting...
nsinherit: doing connect handshake...
nsinherit:
ADR="(ADDRESS=( PROTOCOL=tcp)(D EV=18)(HOST=x.y .z.f)(PORT=1521 ))"
nsinherit: bufl=257
nttbnd2addr: port resolved to 1521
nttbnd2addr: using host IP address: x.y.z.f
nsopen: opening transport...
nttcnp: Validnode Table IN use; err 0x0
nsopen: transport is open
nsinherit: hoff=0
nsinherit: handshake is complete
nttbnd2addr: port resolved to 1521
nttbnd2addr: using host IP address: x.y.z.f
nsinherit: inheriting the connection...
nsopen: opening transport...
nttcnp: Validnode Table IN use; err 0x0
nttcnp: getting sockname
nttcnp: getting peername
nttcon: set TCP_NODELAY on 18
nsopen: transport is open
nsnainit: inf->nsinfflg[0]: 0x8 inf->nsinfflg[1]: 0x8
nsopen: global context check-in (to slot 0) complete
nscon: doing connect handshake...
nscon: sending NSPTRS packet
nscon: doing connect handshake...
nscon: got NSPTCN packet
nsinherit: connection inherited
nsinherit: connected
nscon: sending NSPTAC packet
nscon: doing connect handshake...
nscon: nsctxinf[0]=0x49, [1]=0x8
nsconbrok: asking transport to enable NTOBROKEN
nsnainconn: inf->nsinfflg[0]: 0x49 inf->nsinfflg[1]: 0x8
niotns: No broken-connection function available.
nazsgunm: failed with error 12630
nioqbr: state = normal (0)
nsdo: sending NSPTMK packet
nioqbr: calling rdbms ast handler...
nioqbr: ...done.
nioqrs: state = interrupted (1)
nsdo: sending NSPTMK packet
nsrdr: got NSPTMK packet
nioqbr: state = normal (0)
nsdo: sending NSPTMK packet
nioqbr: calling rdbms ast handler...
nioqbr: ...done.
nioqrs: state = interrupted (1)
nsdo: sending NSPTMK packet
nsrdr: got NSPTMK packet

ORA-12630 (if that's what nazsgunm is saying) is like HTTP 500: no way
to tell what went wrong..

Any help is appreciated.

Alex Smith
Insight LLC
Jul 19 '05 #1
2 12111
First try the 9.2.0.3 driver and see if the problem goes away. JDBC
thin drivers are backward compatible.

If the problem is due to connection timeout, you can try setting
SQLNET.EXPIRE_T IME in sqlnet.ora so that the Oracle server will send a
ping to the client every n seconds. This might keep the connection from
timing out.

If there's a firewall in front of the server, see if you can run the
same Java code behind the firewall. If this solves the problem, then
you have isolated the problem to the firewall. I think there's a list
of firewalls certified by Oracle, and this includes Checkpoint, Cisco,
Sun and some other vendors. You might want to check Metalink for details.

Cheers,
Dave


Alex Smith wrote:
Hi all,

I have an application that uses Oracle's JDBC thin driver 9.0.x to
have a nice, friendly chat with 8.1.x database. During this exchange
the server rudely interrupts the conversation and causes the
application to fubar. The driver reports this as 'Connection reset'
(IOException) without any error numbers. The server is hosted by a 3rd
party in one of those "controlled " environments so my first guess is
network/tx timeout but wouldn't it say so? This is 100% reproducible
and always fails in the same place. The line of code corresponding to
that reported in JDBC driver stack trace does nothing but unset the
auto commit. If this is indeed a case of one particular transaction
timing out on commit, how do I tell if this is indeed the case? I
can't do a client-side SQL*Net trace with the thin driver and
server-side SQL trace doesn't tell me anything interesting.

Here's the relevant part of the server-side SQL*Net trace (IP address
changed to protect the innocent):
nigini: Count in NI global area now: 1
nigini: Count in NI global area now: 1
nrigbni: Unable to get data from navigation file tnsnav.ora
niotns: Not enabling dead connection detection.
nlpcaini: No process parameters set
nsinherit: connecting...
nsinherit: doing connect handshake...
nsinherit:
ADR="(ADDRESS=( PROTOCOL=tcp)(D EV=18)(HOST=x.y .z.f)(PORT=1521 ))"
nsinherit: bufl=257
nttbnd2addr: port resolved to 1521
nttbnd2addr: using host IP address: x.y.z.f
nsopen: opening transport...
nttcnp: Validnode Table IN use; err 0x0
nsopen: transport is open
nsinherit: hoff=0
nsinherit: handshake is complete
nttbnd2addr: port resolved to 1521
nttbnd2addr: using host IP address: x.y.z.f
nsinherit: inheriting the connection...
nsopen: opening transport...
nttcnp: Validnode Table IN use; err 0x0
nttcnp: getting sockname
nttcnp: getting peername
nttcon: set TCP_NODELAY on 18
nsopen: transport is open
nsnainit: inf->nsinfflg[0]: 0x8 inf->nsinfflg[1]: 0x8
nsopen: global context check-in (to slot 0) complete
nscon: doing connect handshake...
nscon: sending NSPTRS packet
nscon: doing connect handshake...
nscon: got NSPTCN packet
nsinherit: connection inherited
nsinherit: connected
nscon: sending NSPTAC packet
nscon: doing connect handshake...
nscon: nsctxinf[0]=0x49, [1]=0x8
nsconbrok: asking transport to enable NTOBROKEN
nsnainconn: inf->nsinfflg[0]: 0x49 inf->nsinfflg[1]: 0x8
niotns: No broken-connection function available.
nazsgunm: failed with error 12630
nioqbr: state = normal (0)
nsdo: sending NSPTMK packet
nioqbr: calling rdbms ast handler...
nioqbr: ...done.
nioqrs: state = interrupted (1)
nsdo: sending NSPTMK packet
nsrdr: got NSPTMK packet
nioqbr: state = normal (0)
nsdo: sending NSPTMK packet
nioqbr: calling rdbms ast handler...
nioqbr: ...done.
nioqrs: state = interrupted (1)
nsdo: sending NSPTMK packet
nsrdr: got NSPTMK packet

ORA-12630 (if that's what nazsgunm is saying) is like HTTP 500: no way
to tell what went wrong..

Any help is appreciated.

Alex Smith
Insight LLC


Jul 19 '05 #2
as******@hotmai l.com (Alex Smith) wrote
I have an application that uses Oracle's JDBC thin driver 9.0.x to
have a nice, friendly chat with 8.1.x database. During this exchange
the server rudely interrupts the conversation and causes the
application to fubar.
Don't you find it weird how software get more and more human-like?
These days even talking trash to one another.. <sigh>
nsconbrok: asking transport to enable NTOBROKEN
nsnainconn: inf->nsinfflg[0]: 0x49 inf->nsinfflg[1]: 0x8
niotns: No broken-connection function available.
nazsgunm: failed with error 12630


12630, 00000, "Native service operation not supported"
// *Cause: An operation requested by a user is not supported by the
native
// services component.
// *Action: This may be an internal error if the operation should have
been
// supported.
My guess is that you have the thin JDBC drivers wired for some option
that Net8 on the back-end can not support. Or, this option is
hardwired (but then this should have been in readme's hopefully).

I did a google on http://www.google.com/search?q=oracl...ction+function

It turned up quite a few pages. Hmm.. seems like this option that
fails is akin to an IP OOB at OraNet level to deal with a CTRL-BREAK
from the client. You may make more sense out of that google set than
I..

--
Billy
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1357
by: Jerry Negrelli | last post by:
I have a windows service that is mysteriously dying on me at what appears to be random intervals. Sometimes its 3 hours, sometimes it's 2 days. Clearly an error is occuring but I haven't been able to pinpoint the problem The service's OnStart method initializes an object whose constructor creates a thread that launches other threads based on certain DB criteria. Every method I call starts with a try and ends with a catch, and any errors...
10
2723
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was closed. Could not establish a trust relationship with the remote server.
10
1702
by: Altman | last post by:
I have only done a little programming in C++ so I am still learning but I am having a problem with a variable that is changing on me. I have tried this 2 ways with the same result. I have a private long variable that keeps changing for no reason. I have a trace file running to tell me what is going on. Here is kind of what is happening l_myVariable send l_myVariable out to tracefile Call a method send l_myVariable out to tracefile
1
3225
by: Sean Nolan | last post by:
We have implemented unhandled error trapping at the application level and log these errors to our database. One error, however, the does not get trapped is when the connection pool has exceeded the max number of connections. Obviously, we need to find the place(s) in our code where connections are not closed correctly (espcially in loops), but I'm wondering if it's possible to trap this error and to find out which part of our code (i.e....
26
16525
by: Rajeev Tipnis | last post by:
http://support.microsoft.com/default.aspx?scid=kb;en- us;819450 Questions: 1) Is this patch (fix) applicable to the .NET 1.1 Framework as well? That is, if we have Framework 1.1 (On Win2K3/IIS6.0), do we still need this patch? 2) Does it specifically solve only this error: The underlying connection was closed. An unexpected error
2
4183
by: Jck | last post by:
Could someone tell me how to detect TcpClient connection dropped, please? I have a TcpClient connected to a server by IP and Port. The TcpClient only read data from the server. However, if there is no data received from the server for a period of time, I am unable to determine whether the connection is dropped or simply no data is sent from the server. Work around: Currently, I am trying to send data with 0 length to detect the...
3
40449
by: vijay.db | last post by:
Hi Group, Getting the below error in AIX server 5.2 and my DB2 ESE is V8.1 and Fixpack 11. I'm able to successfully connect to the database and able to run a SELECT query with out any issues..If I run a UPDATE query on a table which is a part of ETL datastage job..getting the below error: Error: CLI0106E Connection is closed. SQLSTATE =
2
223
by: Alex Smith | last post by:
Hi all, I have an application that uses Oracle's JDBC thin driver 9.0.x to have a nice, friendly chat with 8.1.x database. During this exchange the server rudely interrupts the conversation and causes the application to fubar. The driver reports this as 'Connection reset' (IOException) without any error numbers. The server is hosted by a 3rd party in one of those "controlled" environments so my first guess is network/tx timeout but...
2
2073
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hi all, the following is some trace information for one of my .aspx pages and was wondering if these numbers look good (slow, medium, fast)? thanks, rodchar Trace Information Category Message From First(s) From Last(s) aspx.page Begin PreInit
0
9521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9333
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10107
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9945
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8768
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3442
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.