473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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)(DEV=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 12031
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_TIME 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)(DEV=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******@hotmail.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
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...
10
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...
10
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...
1
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...
26
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...
2
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...
3
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...
2
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.