[ psqlodbc-Bugs-1000639 ] Connect PostgreSQL to Oracle 10g through ODBC: can"t read all_tables
am 30.08.2006 11:50:28 von noreplyBugs item #1000639, was opened at 2006-05-09 13:48
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=10006 39&group_id=1000125
Category: None
Group: None
Status: Closed
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Connect PostgreSQL to Oracle 10g through ODBC: can't read all_tables
Initial Comment:
Oracle 10g is not able to read the database table names (all_tables and all_objects, es. select * from all_tables@hspostgresodbc) from PostgreSQL using PostgreSQL ODBC (v. 08.01.0200). This functionality is essential to be able to use Oracle Warehouse Builder and import external database definitions (heterogeneous services).
However, Oracle (SQL*Plus) is able to retrieve records when the table name is stated in the SQL query (es. select * from âmy_tableâ).
The problem seems to be with the PostgreSQL ODBC because Oracle is able to read schemes from other databases through ODBC. Iâve done some tests with Access dbs just to be sure that the problem is not with my system (Windows XP SP2).
The problem appears both with ANSI and UNICODE PostgreSQL drivers.
Best regards,
Raoni
------------------------------------------------------------ ----------
Comment By: Nobody (None)
Date: 2006-08-30 09:50
Message:
Hi,
is there a solution for this bug? I have exactly the same effects.
Greetings
Michael
------------------------------------------------------------ ----------
Comment By: Ludek Finstrle (luf)
Date: 2006-06-27 10:16
Message:
No user response.
------------------------------------------------------------ ----------
Comment By: Ludek Finstrle (luf)
Date: 2006-05-28 12:30
Message:
The user sends me the mylog output from 08.01 but not from 08.02. I ask him for mylog output from 08.02 and he answer that there is new oracle part and he want to test it before he sends me the mylog output ...
------------------------------------------------------------ ----------
Comment By: Nobody (None)
Date: 2006-05-15 14:26
Message:
Dear Luf and psqlODBC developers,
Looking closer to the debug and comm logs from the driver 8.01.0200, Iâve found out that the problem was generated after a table wasnât found (the driver seems to search for the all_tables table, and just afterwards to query the scheme pg_catalog). In this case the all the following queries returned with the error âERROR: current transaction is aborted, commands ignored until end of transaction blockâ. Maybe this problem is related with the bug [#1000641] http://pgfoundry.org/tracker/index.php?func=detail&aid=10006 41&group_id=1000125&atid=538
Following Lufâs suggestion, Iâve installed the psqlODBC v 08.02.0002 and Iâve got a completely different result.
As before, the simple query âselect * from my_table@hsodbcâ returns the result using SQL*Plus clearly faster than before.
Doing the query âselect * from all_tables@hsodbcâ the result is OK (the name of 56 tables) but the process is very slow and burdensome. The file paging memory in the machine running Oracle and the SQL*Plus jumps from the normal 700 MB to 1.7 GB, and the query takes about 20 minutes to complete.
Also the 1.7 GB remains allocated and the query process halted in PostGreSQL even after the on screen result of the query. The memory is freed and the process terminated after the logging out SQL*Plus.
Probably as result of this memory explosion, the system runs out of memory and Oracle Warehouse Builder selecting data base link -> schema, after some minutes get an error similar to: âcanât read from memory address XXXXXâ
All those test where done with PostGreSQL 8.0.1 (on Linux Suse 9.0) and Oracle 10g (Windows XP SP2).
To be sure that the problem was not related to the PostGreSQL version, we updated the server to the 8.1.3 (running in Linux Suse 9.0 with psqlODBC v 08.02.0002 ) and OWB couldnât see any table as before and doing Select * from all_tables@hsodbc weâve got the message:
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]
ORA-02063: preceding 2 lines from HSPG
no rows selected
On the other hand, with the same configuration as before (Oracle 10g under Windows XP SP1, psqlODBC v 08.02.0002) but with PostGreSQL 8.1.3 under Windows XP SP1, OWB can read table names (same tables imported from Linux PostgreSQL) but not select " from all_tables (a minor problem, because what is important for us is to make OWB work with PostgreSQL).
The encoding for all DBs is UTF8.
Any ideas of where could be the problem?
------------------------------------------------------------ ----------
Comment By: Ludek Finstrle (luf)
Date: 2006-05-09 14:18
Message:
Please, could you try psqlodbc 08.02.0002?
Regards,
Luf
------------------------------------------------------------ ----------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=10006 39&group_id=1000125
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq