My Oracle Support Banner

Query on "bigtable" from remote Client hangs (certain queries or fields) (Doc ID 2104257.1)

Last updated on JUNE 04, 2018

Applies to:

Oracle Net Services - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

Certain queries are hanging when run from some remote Clients.
However, other (smaller) queries are successful.

This is especially evident on queries that require more than 2kb of data to be returned.
Some examples:

select * from v$database; --> hangs
select count(*) from v$database; --> works

DESCRIBE with large data results --> hangs
DESCRIBE with small data results --> works

This might also show up with Database Links (DBLINK) as well.



Trace data
~~~~~~~~~
Matching Client and Server (level 16) tracing on each side shows the following at the time of the "hang"

Client -->

...
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 18 73 65 6C 65 63 74 20 |.select.|
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 2A 20 66 72 6F 6D 20 76 |*.from.v|
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 24 64 61 74 61 62 61 73 |$databas|
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 65 01 00 00 00 00 00 00 |e.......|
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 00 00 00 00 00 00 00 00 |........|
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 00 00 00 00 00 00 00 00 |........|
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 00 00 00 00 00 01 00 00 |........|
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 00 00 00 00 00 00 80 00 |........|
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 00 00 00 00 00 00 00 00 |........|
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: 00 00 00 00 00 |..... |
(12160) [11-JAN-2016 10:39:06:242] nsbasic_bsd: exit (0)
(12160) [11-JAN-2016 10:39:06:242] nsbasic_brc: entry: oln/tot=0
(12160) [11-JAN-2016 10:39:06:242] nttfprd: entry

--> End of trace file (hanging here waiting on the Remote DB to return the results)


Server -->

...
[11-JAN-2016 10:39:19:976] nsbasic_brc: 18 73 65 6C 65 63 74 20 |.select.|
[11-JAN-2016 10:39:19:976] nsbasic_brc: 2A 20 66 72 6F 6D 20 76 |*.from.v|
[11-JAN-2016 10:39:19:976] nsbasic_brc: 24 64 61 74 61 62 61 73 |$databas|
[11-JAN-2016 10:39:19:976] nsbasic_brc: 65 01 00 00 00 00 00 00 |e.......|
[11-JAN-2016 10:39:19:976] nsbasic_brc: 00 00 00 00 00 00 00 00 |........|
[11-JAN-2016 10:39:19:976] nsbasic_brc: 00 00 00 00 00 00 00 00 |........|
[11-JAN-2016 10:39:19:976] nsbasic_brc: 00 00 00 00 00 01 00 00 |........|
[11-JAN-2016 10:39:19:976] nsbasic_brc: 00 00 00 00 00 00 80 00 |........|
[11-JAN-2016 10:39:19:976] nsbasic_brc: 00 00 00 00 00 00 00 00 |........|
[11-JAN-2016 10:39:19:976] nsbasic_brc: 00 00 00 00 00 |..... |
[11-JAN-2016 10:39:19:976] nsbasic_brc: exit: oln=0, dln=275, tot=285, rc=0
[11-JAN-2016 10:39:19:976] nioqrc: exit
[11-JAN-2016 10:39:19:976] nsmore2recv: entry
[11-JAN-2016 10:39:19:976] nsmore2recv: testing for MOREDATA from transport
[11-JAN-2016 10:39:19:976] nsmore2recv: exit (0)
[11-JAN-2016 10:39:19:976] nioqts: exit
[11-JAN-2016 10:39:19:976] nioqts: exit
[11-JAN-2016 10:39:19:976] nioqts: exit
[11-JAN-2016 10:39:19:976] nioqts: exit
[11-JAN-2016 10:39:19:976] nioqts: exit
[11-JAN-2016 10:39:19:976] nioqts: exit
[11-JAN-2016 10:39:19:976] nioqts: exit
[11-JAN-2016 10:39:19:991] nioqts: exit
[11-JAN-2016 10:39:19:991] nioqts: exit
[11-JAN-2016 10:39:19:991] nioqts: exit
[11-JAN-2016 10:39:19:991] nioqts: exit
[11-JAN-2016 10:39:19:991] nioqts: exit
[11-JAN-2016 10:39:19:991] nioqts: exit
[11-JAN-2016 10:39:19:991] nioqts: exit
[11-JAN-2016 10:39:19:991] nioqsn: entry
[11-JAN-2016 10:39:19:991] nioqsn: exit
[11-JAN-2016 10:39:19:991] nioqts: exit
[11-JAN-2016 10:39:21:038] nsmore2recv: entry
[11-JAN-2016 10:39:21:038] nsmore2recv: testing for MOREDATA from transport
[11-JAN-2016 10:39:21:038] nsmore2recv: exit (0)
...

--> Server waits on the Client for "MOREDATA" (but the Client is waiting on the information requested by the last query).
Hence the hanging.




Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.