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

Home -> Community -> Mailing Lists -> Oracle-L -> JDBC Blob reading "hang" every 32ko

JDBC Blob reading "hang" every 32ko

From: 時期 精霊 <kuon_at_goyman.com>
Date: Fri, 11 Nov 2005 11:11:47 +0100
Message-Id: <886E399F-E6B0-450E-801E-9B22394281FA@goyman.com>


Hello,

I'm currently developing a JDBC program on Oracle and I have the following problem.

I use the BLOB.getBinaryStream() method, it works fine, I got the stream and I can read it.

My problem is slow performances, when I call stream.read():

The first call takes 10 seconds.
Then 32*1024 next calls are very fast.
Then hang for 10 seconds
Then 32ko readed fast, hang....

Do you have any idea if this is Database or JDBC problem?

The network is fine.

I think it's a SQL Net problem, because when I SQL plus to the db on the local computer, the connection is immediate, but if I sqlPlus from remote computer, the connection hang for 5 seconds before showing me the sqlPlus prompt. And 32ko seems to be the net packet size, but I'm not sure of this.

So, my questions are:

I use oracle 10g on Solaris 10.
Last JDBC (thin) driver.

Best regards

Kuon

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Nov 11 2005 - 04:14:52 CST

Original text of this message

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