pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedDatabase link from Postgres to Oracle using ODBC
11+ messages / 2 participants
[nested] [flat]
* Database link from Postgres to Oracle using ODBC
@ 2013-12-24 07:59 Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Bart Klein Ikink @ 2013-12-24 07:59 UTC (permalink / raw)
To: pgsql-odbc
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
In file included from odbclink.c:17:
odbclink.h:11: error: expected specifier-qualifier-list before âSQLHENVâ
odbclink.h:17: error: expected specifier-qualifier-list before âSQLHSTMTâ
odbclink.c: In function â_PG_finiâ:
odbclink.c:106: warning: implicit declaration of function âSQLDisconnectâ
odbclink.c:106: error: âodbcconnâ has no member named âhConâ
odbclink.c:107: warning: implicit declaration of function âSQLFreeConnectâ
odbclink.c:107: error: âodbcconnâ has no member named âhConâ
odbclink.c:108: warning: implicit declaration of function âSQLFreeEnvâ
odbclink.c:108: error: âodbcconnâ has no member named âhEnvâ
....
many more lines
What is the problem here?
=
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
@ 2013-12-24 16:05 ` Adrian Klaver <adrian.klaver@gmail.com>
2013-12-24 16:08 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 15:35 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
0 siblings, 2 replies; 11+ messages in thread
From: Adrian Klaver @ 2013-12-24 16:05 UTC (permalink / raw)
To: Bart Klein Ikink <bart_klein_ikink@hotmail.com>; pgsql-odbc
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
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
@ 2013-12-24 16:08 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
1 sibling, 0 replies; 11+ messages in thread
From: Bart Klein Ikink @ 2013-12-24 16:08 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@gmail.com>; pgsql-odbc
That may well be the problem. Holidays are starting now, so I will be able to check it in January.
> Date: Tue, 24 Dec 2013 08:05:05 -0800
> From: adrian.klaver@gmail.com
> To: bart_klein_ikink@hotmail.com; pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Database link from Postgres to Oracle using ODBC
>
> 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
=
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
@ 2014-01-06 15:35 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 17:35 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
1 sibling, 1 reply; 11+ messages in thread
From: Bart Klein Ikink @ 2014-01-06 15:35 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@gmail.com>; pgsql-odbc
I have included the path, but still having problems. What is wrong here?
ls -al /root/test/unixODBC-2.3.2/include/sql*
-rw-rw-r-- 1 1000 1000 82644 Apr 15 2013 /root/test/unixODBC-2.3.2/include/sqlext.h
-rw-rw-r-- 1 1000 1000 32305 Apr 15 2013 /root/test/unixODBC-2.3.2/include/sql.h
-rw-rw-r-- 1 1000 1000 11140 Apr 15 2013 /root/test/unixODBC-2.3.2/include/sqltypes.h
-rw-rw-r-- 1 1000 1000 21666 Apr 15 2013 /root/test/unixODBC-2.3.2/include/sqlucode.h
export PATH=$PATH:/root/test/unixODBC-2.3.2/include:/usr/pgsql-9.2/bin
make USE_PGXS=1
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
odbclink.c: In function âget_dataâ:
odbclink.c:746: error: âtimestamp_inâ undeclared (first use in this function)
odbclink.c:746: error: (Each undeclared identifier is reported only once
odbclink.c:746: error: for each function it appears in.)
odbclink.c:749: error: âtimestamptz_inâ undeclared (first use in this function)
make: *** [odbclink.o] Error 1
> Date: Tue, 24 Dec 2013 08:05:05 -0800
> From: adrian.klaver@gmail.com
> To: bart_klein_ikink@hotmail.com; pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Database link from Postgres to Oracle using ODBC
>
> 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
=
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 15:35 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
@ 2014-01-06 17:35 ` Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 19:02 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Adrian Klaver @ 2014-01-06 17:35 UTC (permalink / raw)
To: Bart Klein Ikink <bart_klein_ikink@hotmail.com>; pgsql-odbc
On 01/06/2014 07:35 AM, Bart Klein Ikink wrote:
> I have included the path, but still having problems. What is wrong here?
> export PATH=$PATH:/root/test/unixODBC-2.3.2/include:/usr/pgsql-9.2/bin
>
> make USE_PGXS=1
> 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
> odbclink.c: In function âget_dataâ:
> odbclink.c:746: error: âtimestamp_inâ undeclared (first use in this
> function)
> odbclink.c:746: error: (Each undeclared identifier is reported only once
> odbclink.c:746: error: for each function it appears in.)
> odbclink.c:749: error: âtimestamptz_inâ undeclared (first use in this
> function)
> make: *** [odbclink.o] Error 1
>
Not quite sure but I would say you do not have the Postgres development
files.
Did you install Postgresql 9.2 from source or from a package?
If from a package you will need to install the postgresql-devel package
for 9.2
--
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
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 15:35 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 17:35 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
@ 2014-01-06 19:02 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 19:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Bart Klein Ikink @ 2014-01-06 19:02 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@gmail.com>; pgsql-odbc
I have installed the Postgres development files from RPM.
> Date: Mon, 6 Jan 2014 09:35:27 -0800
> From: adrian.klaver@gmail.com
> To: bart_klein_ikink@hotmail.com; pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Database link from Postgres to Oracle using ODBC
>
> On 01/06/2014 07:35 AM, Bart Klein Ikink wrote:
> > I have included the path, but still having problems. What is wrong here?
>
> > export PATH=$PATH:/root/test/unixODBC-2.3.2/include:/usr/pgsql-9.2/bin
> >
> > make USE_PGXS=1
> > 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
> > odbclink.c: In function âget_dataâ:
> > odbclink.c:746: error: âtimestamp_inâ undeclared (first use in this
> > function)
> > odbclink.c:746: error: (Each undeclared identifier is reported only once
> > odbclink.c:746: error: for each function it appears in.)
> > odbclink.c:749: error: âtimestamptz_inâ undeclared (first use in this
> > function)
> > make: *** [odbclink.o] Error 1
> >
>
> Not quite sure but I would say you do not have the Postgres development
> files.
> Did you install Postgresql 9.2 from source or from a package?
> If from a package you will need to install the postgresql-devel package
> for 9.2
>
> --
> 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
=
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 15:35 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 17:35 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 19:02 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
@ 2014-01-06 19:05 ` Adrian Klaver <adrian.klaver@gmail.com>
2014-01-07 07:50 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Adrian Klaver @ 2014-01-06 19:05 UTC (permalink / raw)
To: Bart Klein Ikink <bart_klein_ikink@hotmail.com>; pgsql-odbc
On 01/06/2014 11:02 AM, Bart Klein Ikink wrote:
> I have installed the Postgres development files from RPM.
So they where installed before you got your most recent error?
--
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
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 15:35 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 17:35 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 19:02 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 19:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
@ 2014-01-07 07:50 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-07 15:27 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Bart Klein Ikink @ 2014-01-07 07:50 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@gmail.com>; pgsql-odbc
This is what I did:
- yum install gcc
- yum install postgresql92-devel-9.2.5
- extract unixODBC-2.3.2.tar.gz (in /root/test)
- extract ODBC-Link-1.0.4.tar.gz (in /root/test)
- cd /root/test/unixODBC-2.3.2
- ./configure
- make
- make install
- cd ..
- cd ODBC-Link-1.0.4
- export PATH=$PATH:/root/test/unixODBC-2.3.2/include:/usr/pgsql-9.2/bin
- make USE_PGXS=1
> Date: Mon, 6 Jan 2014 11:05:06 -0800
> From: adrian.klaver@gmail.com
> To: bart_klein_ikink@hotmail.com; pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Database link from Postgres to Oracle using ODBC
>
> On 01/06/2014 11:02 AM, Bart Klein Ikink wrote:
> > I have installed the Postgres development files from RPM.
>
> So they where installed before you got your most recent error?
>
>
> --
> Adrian Klaver
> adrian.klaver@gmail.com
=
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 15:35 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 17:35 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 19:02 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 19:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-07 07:50 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
@ 2014-01-07 15:27 ` Adrian Klaver <adrian.klaver@gmail.com>
2014-01-09 10:31 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Adrian Klaver @ 2014-01-07 15:27 UTC (permalink / raw)
To: Bart Klein Ikink <bart_klein_ikink@hotmail.com>; pgsql-odbc
On 01/06/2014 11:50 PM, Bart Klein Ikink wrote:
> This is what I did:
> - yum install gcc
> - yum install postgresql92-devel-9.2.5
> - extract unixODBC-2.3.2.tar.gz (in /root/test)
> - extract ODBC-Link-1.0.4.tar.gz (in /root/test)
> - cd /root/test/unixODBC-2.3.2
> - ./configure
> - make
> - make install
> - cd ..
> - cd ODBC-Link-1.0.4
> - export PATH=$PATH:/root/test/unixODBC-2.3.2/include:/usr/pgsql-9.2/bin
> - make USE_PGXS=1
>
I am not sure what is going on. I can compile here. In my case I am
using my distributions(OpenSUSE 12.2) package versions of unixODBC and
unixODBC-devel
You might try to do the same. Note it is important that they be the same
version for the same version of unixODBC. Then you could get rid of the
export path=..
--
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
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 15:35 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 17:35 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 19:02 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 19:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-07 07:50 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-07 15:27 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
@ 2014-01-09 10:31 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-09 16:03 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Bart Klein Ikink @ 2014-01-09 10:31 UTC (permalink / raw)
To: pgsql-odbc
I have RHEL 6. I have now tried something different:
- yum install gcc
- yum install postgresql92-devel-9.2.5
- yum install unixODBC-2.3.0
- yum install unixODBC-devel
Then:
- cd ODBC-Link-1.0.4
- export PATH=$PATH:/usr/pgsql-9.2/bin
- make USE_PGXS=1
But still having:
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
odbclink.c: In function âget_dataâ:
odbclink.c:746: error: âtimestamp_inâ undeclared (first use in this function)
odbclink.c:746: error: (Each undeclared identifier is reported only once
odbclink.c:746: error: for each function it appears in.)
odbclink.c:749: error: âtimestamptz_inâ undeclared (first use in this function)
make: *** [odbclink.o] Error 1
> Date: Tue, 7 Jan 2014 07:27:58 -0800
> From: adrian.klaver@gmail.com
> To: bart_klein_ikink@hotmail.com; pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Database link from Postgres to Oracle using ODBC
>
> On 01/06/2014 11:50 PM, Bart Klein Ikink wrote:
> > This is what I did:
> > - yum install gcc
> > - yum install postgresql92-devel-9.2.5
> > - extract unixODBC-2.3.2.tar.gz (in /root/test)
> > - extract ODBC-Link-1.0.4.tar.gz (in /root/test)
> > - cd /root/test/unixODBC-2.3.2
> > - ./configure
> > - make
> > - make install
> > - cd ..
> > - cd ODBC-Link-1.0.4
> > - export PATH=$PATH:/root/test/unixODBC-2.3.2/include:/usr/pgsql-9.2/bin
> > - make USE_PGXS=1
> >
>
> I am not sure what is going on. I can compile here. In my case I am
> using my distributions(OpenSUSE 12.2) package versions of unixODBC and
> unixODBC-devel
>
> You might try to do the same. Note it is important that they be the same
> version for the same version of unixODBC. Then you could get rid of the
> export path=..
>
>
> --
> Adrian Klaver
> adrian.klaver@gmail.com
=
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Database link from Postgres to Oracle using ODBC
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 15:35 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 17:35 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 19:02 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 19:05 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-07 07:50 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-07 15:27 ` Re: Database link from Postgres to Oracle using ODBC Adrian Klaver <adrian.klaver@gmail.com>
2014-01-09 10:31 ` Re: Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
@ 2014-01-09 16:03 ` Adrian Klaver <adrian.klaver@gmail.com>
0 siblings, 0 replies; 11+ messages in thread
From: Adrian Klaver @ 2014-01-09 16:03 UTC (permalink / raw)
To: Bart Klein Ikink <bart_klein_ikink@hotmail.com>; pgsql-odbc
On 01/09/2014 02:31 AM, Bart Klein Ikink wrote:
> I have RHEL 6. I have now tried something different:
>
> - yum install gcc
> - yum install postgresql92-devel-9.2.5
> - yum install unixODBC-2.3.0
> - yum install unixODBC-devel
>
>
>
> Then:
>
> - cd ODBC-Link-1.0.4
> - export PATH=$PATH:/usr/pgsql-9.2/bin
> - make USE_PGXS=1
>
> But still having:
>
>
>
> 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
> odbclink.c: In function âget_dataâ:
> odbclink.c:746: error: âtimestamp_inâ undeclared (first use in this function)
> odbclink.c:746: error: (Each undeclared identifier is reported only once
> odbclink.c:746: error: for each function it appears in.)
> odbclink.c:749: error: âtimestamptz_inâ undeclared (first use in this function)
> make: *** [odbclink.o] Error 1
>
>
See if this works.
In the ODBC-Link-1.0.4 directory open odbclink.c
and at the top of the file under the other #includes add:
#include "utils/timestamp.h"
If that does not work then I would suggest contacting the authors of
ODBC-Link and see if they have any suggestions.
--
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
^ permalink raw reply [nested|flat] 11+ messages in thread
end of thread, other threads:[~2014-01-09 16:03 UTC | newest]
Thread overview: 11+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-12-24 07:59 Database link from Postgres to Oracle using ODBC Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2013-12-24 16:05 ` Adrian Klaver <adrian.klaver@gmail.com>
2013-12-24 16:08 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 15:35 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 17:35 ` Adrian Klaver <adrian.klaver@gmail.com>
2014-01-06 19:02 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-06 19:05 ` Adrian Klaver <adrian.klaver@gmail.com>
2014-01-07 07:50 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-07 15:27 ` Adrian Klaver <adrian.klaver@gmail.com>
2014-01-09 10:31 ` Bart Klein Ikink <bart_klein_ikink@hotmail.com>
2014-01-09 16:03 ` Adrian Klaver <adrian.klaver@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox