Connect PostgreSQL to Oracle 10g through ODBC: can't read all_tables

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 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 specifically 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.
Any suggestion of how workaround this problem?
thanks in advance,
Raoni

Dear all,
I’ve tried different tracing levels with out success. The log file does not seem to be created by Oracle.
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=1000641&group_id=1000125&atid=538
Following the Postgres odbc developers 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 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?
regards,
R.

Similar Messages

  • CCX7.0 Database Integration with Oracle 10g through ODBC

    Good Day…
    We are up to integrate CCX7.0 with Oracle 10g, CCX7.0 documents show the way to integrate the CCX7.0 with SQL server, but mention nothing about Oracle 10g, anyway...
    I tried to check the ODBC options, there were many options, I tried to select any Oracle related choice, just to find out Oracle should supply the driver for it. In the forums, people say it’s an Oracle Client, but what will this client do? Am I going to connect though it to the oracle database server or is it going to query the database to my CCX server? What am I going to use in this case, user DSN or system DSN?
    If there any tips or recommendations I will be grateful, as it is my first database integration.
    Thanks
    AT

    Hi Aaron
    Thanks Aaron for the information, and yes you are right, I am not a database person.
    I have here some questions, sorry if some of them sounds silly
    1)       Is there a certain Oracle Client version? or and Oracle Client will work for me?
    2)       Do you recommend system DSN on user DSN?
    3)       “…. available to any device on the system” as you said in your reply, what do you mean by "device" and "system"? Sorry, but this will help to clear the picture to me
    4)       What will this Oracle Client exactly do? Is it going to build an SQL table on my CCX server that query the information from the Oracle Server?
    5)       My customer has already implemented database integration with IPCC3.5, how can I check the current configuration of the Oracle Client, and what things else should I check before proceeding with the integration?
    The reason I want to understand this because there is a lot of database integration is requested from us, the CCX scripts can be used to query data from SQL tables, I read a lot about this –waiting for the implementation phase- the lucky me, the first integration I faces is with Oracle.
    Anyway, who said learning is easy.
    Thanks Aaron for your time, waiting your answers.
    AT

  • Differences between Oracle 10G Client ODBC from 10.1.x to 10.2.x (datatype)

    What differences where implemented to Oracle 10G Clients ODBC connectivity drivers between 10G Release 1 and Release 2 concerning datatypes?
    I have an application that performs a qualified read returning a group of records (this is successful) and then performs a delete on each record read. No errors occur on completion of the application. When using release 1, the records are physically removed. Using release 2 a portion of the same group of records are not removed. The key for the table is a numeric field with six decimal places (not my design). My applications C code defines the field as a DOUBLE.

    I certainly agree that something changed. The question is whether it was a change in function or not. With a lot of these sorts of errors, tracking down the "source" of the error involves finding a change in a piece of code that allowed what was always possible to actually occur. That is, you may have two pieces of code that are functionally identical but that end up allowing the sorts of "round off" errors that are always possible when using doubles. The driver might, for example, now be going down a code path where it shifts a number to the right or left rather than dividing or multiplying by 2, which may make this sort of thing more likely. Functionally, given that doubles don't guarantee infinite precision, these operations are identical, but one may be significantly more likely to cause problems.
    Is your application using the ODBC API directly? Or is it going through a higher-level API? If you are going through ODBC directly, you might look to see whether the data types that are being returned by the driver to your code are the same across driver versions.
    Justin

  • Oracle 10g express edition can support forms 6i & reports

    I have installed oracle 10g express edition and installed forms 6i. while connecting forms 6i into ora 10g express edition it is not connecting in windown xp platform.
    It is showing only "dont send error". I want to know oracle 10g express edition can support forms & reports.
    Please give me solution.
    Thanks
    Govindarajan

    this is from metalink :(https://metalink.oracle.com/metalink/plsql/f?p=140:1:8190633972492825) for windows 2003
    Application Tier Certifications
    OS      Product      Server      Status      Addtl.      Info.      Components      Other      Issues
    2003      6.0.8.26.0 Patch 17      9.2      Desupported      Yes      Yes      N/A      N/A
    2003      6.0.8.26.0 Patch 17      10g      Desupported      Yes      Yes      N/A      N/ASeems you are right, but if you filter only certified version result is NONE!
    And anther link is prooving that:
    https://metalink.oracle.com/metalink/plsql/f?p=200:27:8190633972492825::::p27_id,p27_show_header,p27_show_help:609971.992,1,1
    Nice start to read is:
    http://www.oracle.com/technology/products/forms/htdocs/FormsSOD.html

  • Need ACES attention - connection pooling in oracle 10g rel 1

    I am using TOMCAT 5.0.19 Webserver and ORACLE 10g REL 1 as the database server. I have to restart the TOMCAT Webserver in order to establish connection atleast twice or thrice in a weak. Why I am unable to see the connection pooling in oracle 10g rel 1. How to revive or establish the setup. My objective is to have a centralised oracle 10g rel 1 database server and the applications of java are run thru centralised Webserver Tomcat 5.0.19.
    Can anyone please help me out optimizing the design setup.
    Regards
    Vijay Kumar

    by putting 'Need ACES' in your post title, you might have actually reduced the number of people reading your post, in other words someone >who might have suggested Thanks John for your reply. I changed the subject of the thread after not getting any reply for past 10 days. Last two days I have been updating with plea for attention to my problem. Finally I thought pulling attention of ACES, then only I edited the subject.
    Now, problem I am facing is not in oracle database but in application server. Actually we are running web applications thru Tomcat accessing Oracle 10g rel 1. I am often losing connection with web server. The users are unable to login in the web application. I was told to check oracle database server. I just checked alert log and found no errors. I just asked them to shutdown and restart the web server Tomcat 5.0. It then worked fine. This is temporary. I need to ensure where the problem is. Could you please guide me in checking various parameters or files to be checked to optimise connection pooling.
    Regards
    Vijay Kumar

  • Crystal Crashes when Creating a Connection to MySQL 5.0 through ODBC

    Post Author: [email protected]
    CA Forum: Data Connectivity and SQL
    I am using a MS Server to run BO Server.  I open Crystal Reports, create a new connection to my MySQL Database through ODBC (that is set up as a System DSN).  After i put in the log in credentials the dang thing crashes... Anyone?

    Now the problem has gone from bad to worse.
    I previously had a connection to my database but just couldn't see the tables.
    Now after I added another user I can't even make a connection. Instead I get an error message that says "An unidentified error has occured"
    My server and database are actually running. I can loginto my database through the MySQL workbench. It says it's running. The apache server also says it's running and if I key in localhost in my internet explorer it says "It works!"
    I have now deleted the new user in MySQL  that I added and now I can't even connect to the database in Dreamweaver.
    Any suggestions?
    Thank you,
    Blain

  • COULDN'T CONNECT SQLDEVELOPER AND ORACLE 10G

    COULDN'T CONNECT SQLDEVELOPER AND ORACLE 10G
    anyone can help this?
    can see that error message here.
    http://forums.adobe.com/thread/590462?tstart=0

    user12748850 wrote:
    COULDN'T CONNECT SQLDEVELOPER AND ORACLE 10G
    anyone can help this?
    can see that error message here.
    http://forums.adobe.com/thread/590462?tstart=0
    I left my microscope at home. How bout telling what the error message was ... something like "ora-nnnnn".

  • Migrating database from PostgreSql to Oracle 10g

    Hi
    can anybody help me by providing steps to migrating database from PostgreSql to Oracle 10g. its very urgent requirement. so please let me know if anyone know about this setps.
    thanks in advance.
    jayesh
    cignex technology pvt ltd

    NPD wrote:
    Hi Guys,
    Can one migrate database from sql2005 to Oracle.
    Thanx.You can use [Oracle Migration Tool |http://www.oracle.com/technology/tech/migration/workbench/index.html]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Connecting to the Oracle 10g Database through Java code

    I have a Oracle 10g database to be connected to.
    Through sql plus, I can connect to it using the following command
    sqlplus "sys@pmi as sysdba"and password is 'password'
    how do I connect to this db through my Java code?
    I tried
    _connection = DriverManager.getConnection("jdbc:oracle:thin:@10.245.4.100:1521:pmi as sysdba", "sys", "password");but it gave the exception "ExceptionIo exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))"
    I also tried
    _connection = DriverManager.getConnection("jdbc:oracle:thin:@10.245.4.100:1521:pmi", "sys", "password");but this gives the exception "ExceptionORA-28009: connection as SYS should be as SYSDBA or SYSOPER"
    Can anyone please help me in writing the line of code

    You need to use the getConnection syntax that requires a Properties object.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#05_05
    - cafal

  • Connect to oracle database through ODBC

    Hi,
    I have oracle installed on my linux machine. I need to establish connection to the oracle database from windows.
    Regards
    Bobs

    user12119634(bobs) wrote:
    Hi,
    I have oracle installed on my linux machine. I need to establish connection to the oracle database from windows.
    Regards
    BobsNeeding to connect from a windows client does NOT automatically mean you need odbc. It depends on what app you are using.
    And please note that ODBC is NOT a substitution for the Oracle client software, it is in addition to it.

  • Oracle 10g Client ODBC Error

    Dear all,
    My DB is Oracle 10g (10.2.0.4) on Windows 2003 64 Bit and Our Clients are Oracle 10g (10.2.0.4) on Windows XP 32.
    I created net8 connection ‘PROD’ and sqlplus is connecting with the user/password@PROD
    When I create an ODBC named PROD32 using the TNS Name PROD and I tested the connection with the same username and password which I used in SQLPLUS it is not conning and giving the error message.
    Unable to Connect
    SQLState=28000
    [ORACLE][ODBC][ORA]ORA-01017: Invalid username/password; logon denied
    Can anyone give solution for this issue
    Regards
    Blessan

    Hello,
    are you trying to install the client by some other user which is not owner of oracle:dba group?
    this will genrally happen when you have different owner or manually changed the permissions.
    Please check your /tmp directory for any files releated to ora:DBA may have a soft link check permissions thier.
    Regards,
    Ajay

  • Oracle 10g Express edition,can't visit database homepage

    I have installed Oracle 10g Express edition without error meggage, It seems goes well ,but when I want to visit my database_homepage on http://127.0.0.1:8080/apex, I see this:
    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.
    Please try the following:
    Click the Refresh button, or try again later.
    Open the Web site home page, and then look for links to the information you want.
    If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the Web site home page.
    10061 - Connection refused
    Internet Security and Acceleration Server
    Technical Information (for support personnel)
    Background:
    The server you are attempting to access has refused the connection with the gateway. This usually results from trying to connect to a service that is inactive on the server.
    ISA Server: csscisaser
    Via:
    Oracle is installed on my own computer.I think ISA should do nothing with it.And I have removed proxy setting in Internet exploer,but the error still happed.
    I used netstat-a,and can find this:
    proto :tcp
    local address: myxxxxxx:8080
    foreign address myxxxxxx:0
    state : listening
    does it mean my oracle http listener is started?

    Open a command line and
    - enter ping 127.0.0.1 ... should tell whether
    connectivity is possible. If not, something is
    blocking, and that something is usually a firewall.ping 127.0.0.1. I can connect to 127.0.0.1,very fast.but when I ping 127.0.0.1:8080 ,Can't get response.
    enter ipconfig /all
    enter and post output of lsnrctl status
    There are so many output content.And you may see some #^$*#*&^$#@&* because I'm using Chinese version Oracle and OS.
    IPconfig
    Windows IP Configuration
            Host Name . . . . . . . . . . . . : cjis-e89f34e63f
            Primary Dns Suffix  . . . . . . . :
            Node Type . . . . . . . . . . . . : Hybrid
            IP Routing Enabled. . . . . . . . : No
            WINS Proxy Enabled. . . . . . . . : No
            DNS Suffix Search List. . . . . . : xxxx.wan
    Ethernet adapter 本地连接:
            Connection-specific DNS Suffix  . : xxxx.wan
            Description . . . . . . . . . . . : Broadcom NetXtreme 57xx
    roller
            Physical Address. . . . . . . . . : xx-13-72-7D-67-8B
            Dhcp Enabled. . . . . . . . . . . : Yes
            Autoconfiguration Enabled . . . . : Yes
            IP Address. . . . . . . . . . . . : 172.18.9.30
            Subnet Mask . . . . . . . . . . . : 255.255.255.0
            Default Gateway . . . . . . . . . : 172.18.9.252
            DHCP Server . . . . . . . . . . . : 172.18.18.9
            DNS Servers . . . . . . . . . . . : 172.18.18.9
            Primary WINS Server . . . . . . . : 172.18.18.9
            Lease Obtained. . . . . . . . . . : 2007年7月16日 15:51:15
            Lease Expires . . . . . . . . . . : 2007年7月24日 15:51:15
    LSNRCTL status
    正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    LISTENER 的 STATUS
    别名                      LISTENER
    版本                      TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Prod
    ction
    启动日期                  20-7月 -2007 11:19:13
    正常运行时间              0 天 2 小时 17 分 10 秒
    跟踪级别                  off
    安全性                    ON: Local OS Authentication
    SNMP                      OFF
    默认服务           XE
    监听程序参数文件          C:\oraclexe\app\oracle\product\10.2.0\server\network\
    dmin\listener.ora
    监听程序日志文件          C:\oraclexe\app\oracle\product\10.2.0\server\network\
    og\listener.log
    监听端点概要...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cjis-e89f34e63f)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation
    HTTP)(Session=RAW))
    服务摘要..
    服务 "CLRExtProc" 包含 1 个例程。
      例程 "CLRExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
    服务 "PLSExtProc" 包含 1 个例程。
      例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
    服务 "XEXDB" 包含 1 个例程。
      例程 "xe", 状态 READY, 包含此服务的 1 个处理程序...
    服务 "XE_XPT" 包含 1 个例程。
      例程 "xe", 状态 READY, 包含此服务的 1 个处理程序...
    服务 "xe" 包含 1 个例程。
      例程 "xe", 状态 READY, 包含此服务的 1 个处理程序...
    ['/pre']
    Display contents of
    C:\windows\system32\drivers\etc\hosts.['pre']
    # Copyright (c) 1993-1999 Microsoft Corp.
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    # For example:
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host
    127.0.0.1       localhostMessage was edited by:
    sailfish83

  • How to make a connection pools to oracle 10g in sun application server 8

    env:
    windows xp.
    sun application server 8
    oracle 10g in windows xp .
    I do this
    1: copy the oracle jdbc ojdbc14.jar orai18n.jar file to sun/appserver/lib
    2. add path in admin console
    3. restart the server
    4. make a connnect pools with resource type javax.sql.DataSource
    5.add properties with password,username ,database name= jdbc:oracle:thin:@127.0.0.1:1521:orcl ,(with this url ,my jdbc program can connect oracle10).
    6 .try the ping , it show Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: 指定了无效的(direct to unusale) Oracle URL: OracleDataSource.makeURL
    please replay to me ,thank very much.

    I change the thin driver to oci driver ,jdbc:oracle:oci:@orcl ,then fix the problem.

  • Please!  I try connect jdbc to oracle 10g

    Hi, I have jdk1.5 and oracle 10g EE installed, I have this code:
    import java.sql.*;
    import java.sql.SQLException;
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.sql.PreparedStatement;
    class toAccess {
    public static void main (String args []) throws SQLException
    Connection connection = null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    } catch( Exception e ) {
    System.out.println( "No se pudo cargar el puente JDBC-ODBC." );
    return;
    My problem is an error from exception of Class.forName
    I have ojdbc14.jar in my classpath, driver for jdk1.4 and jdk1.5, I downloading from oracle site.
    I need help you! Thanks for all

    You need to register the driver at the driver manager and then create a connection to the database.
    You could use something like this inside your method:
    DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
    or just
    Class.forName ("oracle.jdbc.OracleDriver");
    then create the connection to the database
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@myhost:1521:orcl", "scott", "tiger");
    Consider to put the connection properties in a properties file. This make you code more flexible.

  • Connect jdbc to oracle 10g

    Hi, I have jdk1.5 and oracle 10g EE installed, I have this code:
    import java.sql.*;
    import java.sql.SQLException;
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.sql.PreparedStatement;
    class toAccess {
    public static void main (String args []) throws SQLException
    Connection connection = null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    } catch( Exception e ) {
    System.out.println( "No se pudo cargar el puente JDBC-ODBC." );
    return;
    My problem is an error from exception of Class.forName
    I have ojdbc14.jar in my classpath, driver for jdk1.4 and jdk1.5, I downloading from oracle site.
    I need help you! an thanks for all

    Please use JDeveloper Forum.
    -aijaz

Maybe you are looking for

  • Can I connect a 2006 Mac Mini 1.8 Ghz Intel to a Sony KDL40V5100 TV?  How?

    I have searched through endless discussions here with posts complaining about problems getting a Mac Mini to properly display on Sony and other brands of flat screen LCD and Plasma HDTVs in full 1080p resolution by hooking it up to the TV using a min

  • Customize Java logging API

    Want to customize java.util.logging api, like write message to message queue, xml file, etc. Would you guys give me some useful suggestion or resource or link? Thanks.

  • Burning DVD's on my external shuts down the computer...

    I just bought a Kanguru QS Slim from NewEgg to use on my PowerPC G4. It play DVDs well, and it plays and burns CDs well. It is even compatible with Lightscribe. Everything works fine until I try to burn a DVD. It freezes the computer and tells me to

  • Help! Charger won't work!

    Whenever I charge my iPod I plug in the white charger (the one that comes with the iPod) into the wall. Problem is, I plug it in and out multiple times but the little thunderbolt that appears on the battery icon won't appear when I plug my charger in

  • URGENT: error during deployment of a process flow through OMB

    I have a process flow which uses a mapping. The mapping has already been synchronized to its corresponding process flow activity.Now i again synchronize the activity with the same mapping to which it was already synchronized OMB+> OMBSYNCHRONIZE PROC