X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5FABF9FB33C for ; Wed, 30 Aug 2006 14:01:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 52216-06-3 for ; Wed, 30 Aug 2006 14:01:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 2FB689FB2EF for ; Wed, 30 Aug 2006 14:00:06 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from fuse1.mailanyone.net (unknown [69.31.1.141]) by svr4.postgresql.org (Postfix) with ESMTP id 7240E5AF8CB for ; Wed, 30 Aug 2006 17:00:05 +0000 (GMT) Received: from mailanyone.net by fuse1.mailanyone.net with asmtp (MailAnyone extSMTP kkempter) id 1GITPx-00081T-MF; Wed, 30 Aug 2006 11:59:57 -0500 Received: from 63.214.184.6 (FuseMail web AccountID 164106) by webmail.fusemail.com with HTTP; Wed, 30 Aug 2006 11:59:57 -0500 (CDT) Message-ID: <1156957197.v2.fusewebmail-164106@f> Date: Wed, 30 Aug 2006 11:59:57 -0500 (CDT) Subject: Re: Oracle HSODBC problems From: "LLC" To: "Jonah H. Harris" , pgsql-odbc@postgresql.org Reply-To: kevin@kevinkempterllc.com User-Agent: FuseMail W MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.746 tagged_above=0 required=5 tests=AWL, SPF_NEUTRAL, UNPARSEABLE_RELAY X-Spam-Level: * X-Archive-Number: 200608/161 X-Sequence-Number: 8125 ----- Original Message ----- Subject: Re: [ODBC] Oracle HSODBC problems From: "Jonah H. Harris" Date: Tue, August 29, 2006 20:11 On 8/29/06, LLC wrote: > each time we get 'table does not exist' In PostgreSQL: CREATE TABLE test_tbl (test_id NUMERIC(10) NOT NULL PRIMARY KEY, test_name VARCHAR(32)); In PostgreSQL: INSERT INTO test_tbl VALUES (1, 'From PostgreSQL'); In Oracle over HSODBC: INSERT INTO "test_tbl"@dblinkname VALUES (2, 'From Oracle'); -- Jonah H. Harris, Software Architect | phone: 732.331.1300 EnterpriseDB Corporation | fax: 732.331.1301 33 Wood Ave S, 2nd Floor | jharris@enterprisedb.com Iselin, New Jersey 08830 | http://www.enterprisedb.com/ ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster Hi Jonah; The above works so long as the test_tbl lives in the 'postgres' database (the default db). If I run the folowing it does not work. Oracle cannot find the table because it's not connecting to the testdb database. The postgres logs indicate a connection attempt via the postgres database. The correct database is specified in the odbs DSN as well, but seems to have no effect. Thanks for your help... In PostgreSQL: CREATE database testdb; \c testdb CREATE TABLE test_tbl (test_id NUMERIC(10) NOT NULL PRIMARY KEY, test_name VARCHAR(32)); In PostgreSQL: INSERT INTO testdb.test_tbl VALUES (1, 'From PostgreSQL'); In Oracle over HSODBC: INSERT INTO "testdb.test_tbl"@dblinkname VALUES (2, 'From Oracle');