Problem with Oracle, ODBC and Postgresql

Problem with Oracle, ODBC and Postgresql

am 27.03.2009 13:44:13 von Raul Orduna

------_=_NextPart_001_01C9AED9.BBD10E2B
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Summarizing:

I have a dump of postgress data I must migrate to Oracle (a really =
complex project...really). The process must be iterative and repeatedly.

=20

The OS are linux for Oracle and odbc machines and postgresql is in =
windows.

=20

For this objective I want to access from oracle to postgresql via =
heterogeneous services and odbc. This integration, theoretically simple, =
cause problems in both sides.

=20

The oracle part was through dg4odbc and unixODBC.

=20

I use the standard driver for odbcposgres included in unixODBC =
"/usr/lib/libodbcpsql.so" (with isql I can connect to postgresql through =
unixodbc). But with dg4odbc an error affecting the types of SQLGetInfo =
arises.

=20

I am trying to build the last driver of psqlodbc-08-08-0400 but I obtain =
conflicts with installation of unixODBC.

=20

I try to avoid them renaming the with-unixodbc clauses, but I obtain =
more errors.

=20

Some idea?

=20

Ra=FAl

=20


------_=_NextPart_001_01C9AED9.BBD10E2B
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

charset=3Diso-8859-1">
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">












face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'>Summarizing:



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>I have =
a dump of
postgress data I must migrate to Oracle (a really complex =
project...really). The
process must be iterative and repeatedly.



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'> 



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>The OS =
are linux
for Oracle and odbc machines and postgresql is in =
windows.



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'> 



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>For =
this
objective I want to access from oracle to postgresql via heterogeneous =
services
and odbc. This integration, theoretically simple, cause problems in both =
sides.



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'> 



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>The =
oracle part
was through dg4odbc and unixODBC.



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'> 



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>I use =
the standard
driver for odbcposgres included in unixODBC =
“/usr/lib/libodbcpsql.so”
(with isql I can connect to postgresql through unixodbc). But with =
dg4odbc an
error affecting the types of SQLGetInfo =
arises.



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'> 



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>I am =
trying to
build the last driver of psqlodbc-08-08-0400 but I obtain conflicts with
installation of unixODBC.



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'> 



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>I try =
to avoid
them renaming the with-unixodbc clauses, but I obtain more =
errors.



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'> 



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>Some =
idea?



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'> 



face=3D"Courier New"> lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'>Raúl



style=3D'font-size:
10.0pt;font-family:Arial'> 









------_=_NextPart_001_01C9AED9.BBD10E2B--

Re: Problem with Oracle, ODBC and Postgresql

am 27.03.2009 14:51:07 von Hiroshi Saito

Hi.

----- Original Message -----
From: "Raul Orduna"

> I am trying to build the last driver of psqlodbc-08-08-0400 but I obtain conflicts
> with installation of unixODBC.

Please setup the odbc.ini
(for example.)
Driver = /usr/home/saito/PSQLODBC/psqlodbc/.libs/psqlodbcw.so

> I try to avoid them renaming the with-unixodbc clauses, but I obtain more errors.

What thing is an errors?

Regards,
Hiroshi Saito


--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Re: Problem with Oracle, ODBC and Postgresql

am 30.03.2009 11:09:50 von Raul Orduna

------_=_NextPart_001_01C9B117.4884AF59
Content-Type: multipart/alternative;
boundary="----_=_NextPart_002_01C9B117.4884AF59"


------_=_NextPart_002_01C9B117.4884AF59
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Finally I build the 08.03.0400 version of the postgress driver for ODBC but=
now I have a problem.

=20

From unixODBC I tried to use the new driver and I obtain the error attached.

=20

In the logs the error seems that the driver don't find other library of pgs=
ql.

"/usr/local/pgsql/lib/libpq.so.5.1"

=20

I check the privileges and I put the postgres lib directory in the path but=
the error is the same.

=20

Any idea? With this driver is always necessary to intall a postgresql servi=
ce?? (the final connection must be remote through unixODBC)

=20

Ra=FAl

=20

=20


------_=_NextPart_002_01C9B117.4884AF59
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">












avy
face=3DArial> color:navy'>Finally I build the 08.03.0400 version of the postgress driver =
for
ODBC but now I have a problem.



avy
face=3DArial> color:navy'> 



avy
face=3DArial> color:navy'>From unixODBC I tried to use the new driver and I obtain the er=
ror
attached.



avy
face=3DArial> color:navy'> 



=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>In the logs the err=
or
seems that the driver don't find other library of pgsql.
<=
/font>



=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>"/usr/local/pg=
sql/lib/libpq.so.5.1"



=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>  span>



=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>I check the privile=
ges
and I put the postgres lib directory in the path but the error is the same.=



=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>  span>



=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Any idea? With this
driver is always necessary to intall a postgresql service?? (the final
connection must be remote through unixODBC)



=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>  span>



=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Ra=F Al span>



avy
face=3DArial> color:navy'> 



=3D'font-size:
10.0pt;font-family:Arial'> 









------_=_NextPart_002_01C9B117.4884AF59--

------_=_NextPart_001_01C9B117.4884AF59
Content-Type: application/octet-stream; name="PostgreSQL_trace.log"
Content-Transfer-Encoding: base64
Content-Description: PostgreSQL_trace.log
Content-Disposition: attachment; filename="PostgreSQL_trace.log"

W09EQkNdWzU5NjVdWzEyMzc5ODE1NTkuMDI0MjU1XVtfX2hhbmRsZXMuY11b
NDUwXQoJCUV4aXQ6W1NRTF9TVUNDRVNTXQoJCQlFbnZpcm9ubWVudCA9IDB4
ODI3ZmYxMApbT0RCQ11bNTk2NV1bMTIzNzk4MTU1OS4wMjQzNjhdW1NRTEFs
bG9jSGFuZGxlLmNdWzM2NF0KCQlFbnRyeToKCQkJSGFuZGxlIFR5cGUgPSAy
CgkJCUlucHV0IEhhbmRsZSA9IDB4ODI3ZmYxMApbT0RCQ11bNTk2NV1bMTIz
Nzk4MTU1OS4wMjQ0MTddW1NRTEFsbG9jSGFuZGxlLmNdWzQ4Ml0KCQlFeGl0
OltTUUxfU1VDQ0VTU10KCQkJT3V0cHV0IEhhbmRsZSA9IDB4ODI4MDZhMApb
T0RCQ11bNTk2NV1bMTIzNzk4MTU1OS4wMjQ0NzddW1NRTENvbm5lY3QuY11b
MzYxNF0K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AKCQkJU1FMU3Rh
dGUgPSAweGJmZTMyNzVhICAgICAgICAgICAgICAgIAoJCQlOYXRpdmUgPSAw
eGJmZTMyNzY0ICAgICAgICAgICAgICAgIAoJCQlNZXNzYWdlIFRleHQgPSAw
eGJmZTMyNTY1ICAgICAgICAgICAgICAgIAoJCQlCdWZmZXIgTGVuZ3RoID0g
NTAwICAgICAgICAgICAgICAgIAoJCQlUZXh0IExlbiBQdHIgPSAweGJmZTMy
NzZhCltPREJDXVs1OTY1XVsxMjM3OTgxNTU5LjAyODY3Ml1bU1FMRXJyb3Iu
Y11bNTQ3XQoJCUV4aXQ6W1NRTF9OT19EQVRBXQpbT0RCQ11bNTk2NV1bMTIz
Nzk4MTU1OS4wMjg4MzRdW1NRTEZyZWVIYW5kbGUuY11bMjc5XQoJCUVudHJ5
OgoJCQlIYW5kbGUgVHlwZSA9IDIKCQkJSW5wdXQgSGFuZGxlID0gMHg4Mjgw
NmEwCltPREJDXVs1OTY1XVsxMjM3OTgxNTU5LjAyODg5NV1bU1FMRnJlZUhh
bmRsZS5jXVszMzBdCgkJRXhpdDpbU1FMX1NVQ0NFU1NdCltPREJDXVs1OTY1
XVsxMjM3OTgxNTU5LjAyODk0N11bU1FMRnJlZUhhbmRsZS5jXVsyMTJdCgkJ
RW50cnk6CgkJCUhhbmRsZSBUeXBlID0gMQoJCQlJbnB1dCBIYW5kbGUgPSAw
eDgyN2ZmMTAK

------_=_NextPart_001_01C9B117.4884AF59
Content-Type: text/plain
Content-Disposition: inline
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable


--=20
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

------_=_NextPart_001_01C9B117.4884AF59--