Unix Technical Forum

Problem with Cursor in Oracle from Postgresql via ODBC

This is a discussion on Problem with Cursor in Oracle from Postgresql via ODBC within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Hi everybody, if someone get's confused by the subject, let me explain: Oracle 10g on Linux with ODBC installation ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 02:27 AM
pofesen pofesen
 
Posts: n/a
Default Problem with Cursor in Oracle from Postgresql via ODBC

Hi everybody,

if someone get's confused by the subject, let me explain:

Oracle 10g on Linux with ODBC installation for DB-Link to Postgresql. That
works very fine!

But, now the problem:

In PL/SQL procedure I open a view on the PGSQL (8.0.3) DB into a cursor
which i want to loop through until EOF. The View returns about 2.000 rows,
but always at the number of 100 rows, it just stops, like there are no more
rows. But I know there are and a "normal" select statement gives me the
correct result!

Anybody has an idea? I would really appreciate.


best regards,
thomas

__________________________________________________ _______________
So können Sie zu jeder Zeit die besten Suchfunktionen nutzen - die MSN
Toolbar. http://toolbar.msn.at?DI=43&XAPID=2170


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 02:27 AM
Johann Zuschlag
 
Posts: n/a
Default Re: Problem with Cursor in Oracle from Postgresql via ODBC

pofesen pofesen schrieb:

>
> In PL/SQL procedure I open a view on the PGSQL (8.0.3) DB into a cursor
> which i want to loop through until EOF. The View returns about 2.000
> rows,
> but always at the number of 100 rows, it just stops, like there are no
> more
> rows. But I know there are and a "normal" select statement gives me the
> correct result!
>
> Anybody has an idea? I would really appreciate.
>
>

Hi Thomas,

which version of psqlodbc you are using? It seems that you switched on
'cursor control' in the driver. There was a bug recently in that part of
the driver. I'm not sure whether that was fixed in the last version
(8.01.00.04).

regards

Johann


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 02:27 AM
Richard Huxton
 
Posts: n/a
Default Re: Problem with Cursor in Oracle from Postgresql via ODBC

pofesen pofesen wrote:
> Hi everybody,
>
> if someone get's confused by the subject, let me explain:
>
> Oracle 10g on Linux with ODBC installation for DB-Link to Postgresql. That
> works very fine!
>
> But, now the problem:
>
> In PL/SQL procedure I open a view on the PGSQL (8.0.3) DB into a cursor
> which i want to loop through until EOF. The View returns about 2.000 rows,
> but always at the number of 100 rows, it just stops, like there are no more
> rows. But I know there are and a "normal" select statement gives me the
> correct result!
>
> Anybody has an idea? I would really appreciate.


First step would be to turn logging on/up at both ends - see what is
being executed.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:04 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com