Problem with Oracle, ODBC and Postgresql
------_=_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.
The OS are linux for Oracle and odbc machines and postgresql is in =
windows.
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.
The oracle part was through dg4odbc and unixODBC.
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.
I am trying to build the last driver of psqlodbc-08-08-0400 but I obtain =
conflicts with installation of unixODBC.
I try to avoid them renaming the with-unixodbc clauses, but I obtain =
more errors.
Some idea?
Ra=FAl
------_=_NextPart_001_01C9AED9.BBD10E2B
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EstiloCorreo17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
[at] page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DES link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'>Summarizing:<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
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.<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
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.<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
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.<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>The =
oracle part
was through dg4odbc and unixODBC.<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
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.<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
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.<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
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.<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier New"'>Some =
idea?<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
face=3D"Courier New"><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:"Courier =
New"'>Raúl<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
------_=_NextPart_001_01C9AED9.BBD10E2B--
Re: Problem with Oracle, ODBC and Postgresql
Hi.
----- Original Message -----
From: "Raul Orduna" <rorduna [at] tracasa.es>
> 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 [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Re: Problem with Oracle, ODBC and Postgresql
------_=_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.
From unixODBC I tried to use the new driver and I obtain the error attached.
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"
I check the privileges and I put the postgres lib directory in the path but=
the error is the same.
Any idea? With this driver is always necessary to intall a postgresql servi=
ce?? (the final connection must be remote through unixODBC)
Ra=FAl
------_=_NextPart_002_01C9B117.4884AF59
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EstiloCorreo18
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.EstiloCorreo19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
[at] page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DES link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 color=3Dn=
avy
face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;
color:navy'>Finally I build the 08.03.0400 version of the postgress driver =
for
ODBC but now I have a problem.<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 color=3Dn=
avy
face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 color=3Dn=
avy
face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;
color:navy'>From unixODBC I tried to use the new driver and I obtain the er=
ror
attached.<o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 color=3Dn=
avy
face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dnavy face=3DArial><span lang=
=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.<o:p></o:p></span><=
/font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dnavy face=3DArial><span lang=
=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>"/usr/local/pg=
sql/lib/libpq.so.5.1"<o:p></o:p></span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dnavy face=3DArial><span lang=
=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></=
span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dnavy face=3DArial><span lang=
=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.=
<o:p></o:p></span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dnavy face=3DArial><span lang=
=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></=
span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dnavy face=3DArial><span lang=
=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)<o:p></o:p></span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dnavy face=3DArial><span lang=
=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></=
span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dnavy face=3DArial><span lang=
=3DEN-GB
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Ra=F Al<o:p></o:p></=
span></font></p>
<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 color=3Dn=
avy
face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
------_=_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
MzYxNF0KCQlFbnRyeTogICAgICAgICAgICAKCQkJQ29ubmVjdGlvbiA9IDB4
ODI4MDZhMCAgICAgICAgICAgIAoJCQl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TMyNzY0ICAgICAgICAgICAgICAgIAoJCQlNZXNzYWdlIFRleHQgPSAw
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
--
Sent via pgsql-odbc mailing list (pgsql-odbc [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
------_=_NextPart_001_01C9B117.4884AF59--