Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 26th, 2005, 02:37 AM
cherry1 cherry1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 15 cherry1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 21 m
Reputation Power: 0
no scrollable cursors in oracle?

background
im trying to connect java to oracle8 (not 8i) using jdbc-odbc bridge (type 1 driver). 'previous' button on my GUI is supposed to display previous records and 'next' button moves to next records. the next button works fine...but on clicking previous buttons...i get exception that ResultSet is TYPE_FORWARD_ONLY.

then i read this in ODBC help docs:
----------------------------------
The Microsoft Cursor Library is a DLL that emulates scrollable cursor support. When loaded, it positions itself between the Microsoft Driver Manager and the Oracle ODBC driver.Therefore, all ODBC calls go through the cursor library, which in turn calls the Oracle ODBC driver. The Microsoft Cursor Library parses SQL syntax to support the ‘WHERE CURRENT OF cursor’ clause. The Microsoft Cursor Library also modifies SQL statements before passing them to the Oracle ODBC driver. For example, ‘FOR UPDATE’ and ‘WHERE CURRENT OF cursor’ syntax cannot be seen by the Oracle ODBC driver.

The attribute SQL_ATTR_ODBC_CURSORS of the SQLSetConnectAttr call specifies how the Microsoft Driver Manager uses the Microsoft Cursor Library. A value of SQL_CUR_USE_IF_NEEDED directs the Microsoft Driver Manager to load the Microsoft Cursor Library if the Oracle ODBC driver does not support ‘FETCH PRIOR’, and a value of SQL_CUR_USE_ODBC always loads the Microsoft Cursor Library. A value of SQL_CUR_USE_DRIVER requests the Oracle ODBC driver to use its internal scrolling capabilities (of which there are none).
-----------------------------------

i cant figure out a way out of this problem. none of the people i contacted, and various programming message boards, are able to help.

u guyz are my last hope. if anyone knows a way out of this (how to make cursor scrollable)....plz help.

*curls up in a dark corner to cry*

ps. oh yeah! the same java code works fine wid access.

Reply With Quote
  #2  
Old May 26th, 2005, 02:51 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,815 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 1 Day 14 m 37 sec
Reputation Power: 278
Please don't use the inefficient jdbc-odbc bridge, Oracle provides a native jdbc driver here

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > no scrollable cursors in oracle?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway