Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Oracle10g/11g, scrollable cursors, and JDBC scrollable res..

 
   Database Help (Home) -> Oracle RSS
Next:  Users created during SQL installation  
Author Message
jms

External


Since: Sep 30, 2008
Posts: 2



(Msg. 1) Posted: Tue Sep 30, 2008 4:51 pm
Post subject: Oracle10g/11g, scrollable cursors, and JDBC scrollable result
Archived from groups: comp>databases>oracle>misc (more info?)

According to the following documents from Oracle's JDBC drivers for
10g and 11g:

http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/resltset....#CIHCHB

http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/resltset....#CIHCHB

To quote:

"Oracle JDBC Implementation for Result Set Scrollability

Because the underlying server does not support scrollable cursors,
Oracle JDBC must implement scrollability in a separate layer.

It is important to be aware that this is accomplished by using a
client-side memory cache to store rows of a scrollable result set.

Important:
Because all rows of any scrollable result set are stored in the client-
side cache, a situation where the result set contains many rows, many
columns, or very large columns might cause the client-side Java
virtual machine (JVM) to fail. Do not specify scrollability for a
large result set."


But Oracle's own documentation for the database server itself says
that it does support scrollable cursors:

http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/sqlplsq...tm#sthr

So the question is ... what does Oracle's JDBC thin driver actually
do ?? Does it use a scrollable cursor or not ? If not, which one
does ?

John

 >> Stay informed about: Oracle10g/11g, scrollable cursors, and JDBC scrollable res.. 
Back to top
Login to vote
ddf

External


Since: Oct 01, 2008
Posts: 75



(Msg. 2) Posted: Wed Oct 01, 2008 8:11 am
Post subject: Re: Oracle10g/11g, scrollable cursors, and JDBC scrollable result [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Comments embedded.

On Sep 30, 6:51 pm, jms <jesus.m.sa....DeleteThis@gmail.com> wrote:
> According to the following documents from Oracle's JDBC drivers for
> 10g and 11g:
>
> http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/resltset...
>
> http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/resltset...
>
> To quote:
>
> "Oracle JDBC Implementation for Result Set Scrollability
>
> Because the underlying server does not support scrollable cursors,
> Oracle JDBC must implement scrollability in a separate layer.
>
> It is important to be aware that this is accomplished by using a
> client-side memory cache to store rows of a scrollable result set.
>
> Important:
> Because all rows of any scrollable result set are stored in the client-
> side cache, a situation where the result set contains many rows, many
> columns, or very large columns might cause the client-side Java
> virtual machine (JVM) to fail. Do not specify scrollability for a
> large result set."
>
> But Oracle's own documentation for the database server itself says
> that it does support scrollable cursors:
>
> http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/sqlpls...
>
> So the question is ... what does Oracle's JDBC thin driver actually
> do ??

Implements JDBC 2.0 result set functionality.

> Does it use a scrollable cursor or not ?

It does what the documentation which you posted states:

"Because the underlying server does not support scrollable cursors,
Oracle JDBC must implement scrollability in a separate layer.


It is important to be aware that this is accomplished by using a
client-side memory cache to store rows of a scrollable result set."

The links to the java implementation provide examples of java-style
scrollable cursors. The commands to manipulate those differ greatly
from those available in OCI/OCCI.

> If not, which one does ?

The scrollable cursors you refer to, mentioned in the last link
provided by your post, are an OCI/OCCI implementation, which is an
entirely different programming interface. Visit that link again and
you'll see, down the page, an example of an OCI scrollable cursor.

>
> John


David Fitzjarrell

 >> Stay informed about: Oracle10g/11g, scrollable cursors, and JDBC scrollable res.. 
Back to top
Login to vote
jms

External


Since: Sep 30, 2008
Posts: 2



(Msg. 3) Posted: Wed Oct 01, 2008 9:45 pm
Post subject: Re: Oracle10g/11g, scrollable cursors, and JDBC scrollable result [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 2, 1:11 am, ddf <orat....RemoveThis@msn.com> wrote:
> Comments embedded.
>
> On Sep 30, 6:51 pm, jms <jesus.m.sa....RemoveThis@gmail.com> wrote:
>
>
>
> > According to the following documents from Oracle's JDBC drivers for
> > 10g and 11g:
>
> >http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/resltset...
>
> >http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/resltset...
>
> > To quote:
>
> > "Oracle JDBC Implementation for Result Set Scrollability
>
> > Because the underlying server does not support scrollable cursors,
> > Oracle JDBC must implement scrollability in a separate layer.
>
> > It is important to be aware that this is accomplished by using a
> > client-side memory cache to store rows of a scrollable result set.
>
> > Important:
> > Because all rows of any scrollable result set are stored in the client-
> > side cache, a situation where the result set contains many rows, many
> > columns, or very large columns might cause the client-side Java
> > virtual machine (JVM) to fail. Do not specify scrollability for a
> > large result set."
>
> > But Oracle's own documentation for the database server itself says
> > that it does support scrollable cursors:
>
> >http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/sqlpls...
>
> > So the question is ... what does Oracle's JDBC thin driver actually
> > do ??
>
> Implements JDBC 2.0 result set functionality.
>
> > Does it use a scrollable cursor or not ?
>
> It does what the documentation which you posted states:
>
> "Because the underlying server does not support scrollable cursors,
> Oracle JDBC must implement scrollability in a separate layer.
>
> It is important to be aware that this is accomplished by using a
> client-side memory cache to store rows of a scrollable result set."
>
> The links to the java implementation provide examples of java-style
> scrollable cursors.  The commands to manipulate those differ greatly
> from those available in OCI/OCCI.
>
> > If not, which one does ?
>
> The scrollable cursors you refer to, mentioned in the last link
> provided by your post, are an OCI/OCCI implementation, which is an
> entirely different programming interface.  Visit that link again and
> you'll see, down the page, an example of an OCI scrollable cursor.
>
>
>
> > John
>
> David Fitzjarrell

Hi,

OK ... Never used OCI before, so my question is .... when using OCI a
scrollable cursor, the cursor on the result set has to be in the
database. Thus, the scrollability of the cursor should also be
implemented by the database .. yes / no ?

If yes, I would have assumed that the JDBC OCI driver would have used
OCI scrollable cursors, which would in turn use scrollable results
native in the Oracle database itself.

However, Oracle has both a JDBC thin driver and a JDBC OCI driver. The
first and second links ( both linking to JDBC documentation ) in my OP
did not say that only the thin driver is implementing scrollability in
the JDBC layer. It seems to be saying that both JDBC drivers ( thin
and OCI ) are doing their own scrollability implementation.

John
 >> Stay informed about: Oracle10g/11g, scrollable cursors, and JDBC scrollable res.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Oracle10g on LinuxxFedora 2) - SQLPLUS Problem - I seemed to have installed Oracle 10g R! on Linux Fedor Core 2 successfully. However, whn I siwtch directories to $cd ORACLE_HOME/bin and type $sqlplus I just get another $prompt, no SQL> promt (and no error message). A starter database was not..

Cursors - Hi All, I've looked over some internet pages and have not found the solution yet..... I have a cursor which is the same in terms of columns for 5 tables, except the table name is different. Can I create some type of REF cursor or something where I can...

pro*c, cursors and indicator structs - I've hit a problem on pro*c at work and I'm not sure what's causing it - One problem is that I'm not a pro*c programmer ! we have an oracle cursor declared and 2 pro*c structs which take the contents of the cursor. the indicator struct has all variable...

NLS_DATE_FORMAT in jdbc - Hi, I've seen many discussion on setting NLS_DATE_FORMAT. But when I tried to set NLS_DATE_FORMAT inside jdbc, it didn't seem to have any effect. Please see my codes below. Anyone has an idea? Many thanks CM import oracle.jdbc.pool.OracleDataSource;....

JDBC Driver 8.1.6 - Hello, Is it possible to download somewhere JDBC Driver 8.1.6 ? I would need to connect an old Oracle 7 database (The oldest one I found is 8.1.7) Thanks in advance.
   Database Help (Home) -> Oracle All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]