Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VvUTp-0005rk-8c for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Dec 2013 16:05:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VvUTo-0007SG-J2 for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Dec 2013 16:05:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VvUTn-0007Rr-MF for pgsql-odbc@postgresql.org; Tue, 24 Dec 2013 16:05:11 +0000 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VvUTk-0005zW-Pn for pgsql-odbc@postgresql.org; Tue, 24 Dec 2013 16:05:11 +0000 Received: by mail-pd0-f176.google.com with SMTP id w10so6432106pde.7 for ; Tue, 24 Dec 2013 08:05:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=lUgWLpBdS4B/K00Cx6dIIyRbTbKIElg8APEP+D3OjT8=; b=pQ6sLFlgNekwns1VHR7/1NdZCbdm21Q1Z6phqPn2C0BhTZfrzLhq8RJguvxUQsNdM2 8wSVlgFomUtMq62oLzbdhCWlRMsnRJuRwLD6/3TUkOnClFR7p4oblaW22rv5JJZwP8An LPdqHjAEfcdy+HSpp2gxyFbnqe9KyO0IpN9S5uu8A6pPzjm83ASsdD86Udrmk6VG2WtE weWoZFZ6PwMktJl6LCQopiEGmGQclEwNzvkm8EzfWWO0PMmDjyHPC5KXnP6xPCF8Cbdn X2hmhRrefa+9sVF66+cfnzriXeZX7JAeE7IL5vITO9yQWYoj9GjCW+TSStbDrCu4E1Ni gyqA== X-Received: by 10.66.119.136 with SMTP id ku8mr33308249pab.121.1387901107117; Tue, 24 Dec 2013 08:05:07 -0800 (PST) Received: from panda.site (174-21-132-251.tukw.qwest.net. [174.21.132.251]) by mx.google.com with ESMTPSA id qz9sm42681685pbc.3.2013.12.24.08.05.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Dec 2013 08:05:06 -0800 (PST) Message-ID: <52B9B0B1.4040104@gmail.com> Date: Tue, 24 Dec 2013 08:05:05 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Bart Klein Ikink , "pgsql-odbc@postgresql.org" Subject: Re: Database link from Postgres to Oracle using ODBC References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 12/23/2013 11:59 PM, Bart Klein Ikink wrote: > I am a newbie so I may have done something wrong. I have made a database > link from Oracle 11.2 to Postgres 9.2 using unixODBC, Oracle HS and > psqlODBC. It is working fine. > > Now I want to do it the other way around, which is making a database > link from Postgres 9.2 to Oracle 11.2. I have figured out that I have to > install ODBC-Link 1.0.4 or Oracle_fdw 0.9.9. > > I tried to install ODBC-Link 1.0.4 and Oracle_fdw 0.9.9, but both have > similar problems as shown below (using ODBC-Link 1.0.4): > > [root]# export PATH=$PATH:/usr/pgsql-9.2/bin > [root]# pg_config --pgxs > /usr/pgsql-9.2/lib/pgxs/src/makefiles/pgxs.mk > [root]# USE_PGXS=1 make > gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -I/usr/include/et -Wall -Wmissing-prototypes -Wpointer-arith > -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute > -Wformat-security -fno-strict-aliasing -fwrapv -fpic -I. -I. > -I/usr/pgsql-9.2/include/server -I/usr/pgsql-9.2/include/internal > -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include > -c -o odbclink.o odbclink.c > In file included from odbclink.c:17: > odbclink.h:4:17: error: sql.h: No such file or directory > odbclink.h:5:20: error: sqlext.h: No such file or directory > > What is the problem here? The *.h files are supplied by unixodbc-devel, so do you have that installed or are the files in the PATH where they can be found? -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc