Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle ODBC Gateway SELECT from Sybase fails on large column

tx103108Oct 17 2012 — edited Oct 19 2012
OS: CentOS 5.8 64-bit
DB: Oracle XE 11gR1 64-bit
Gateway: Oracle Gateway for ODBC 64-bit
Database and gateway reside on same Linux Server.
Connecting to remote Sybase SQL Anywhere 10 server on WindowsXP.
Using SQL Anywhere 11 odbc driver and unixODBC driver manager on Linux server.
isql tool connects without any problems.
One LISTENER, service for db and gateway on same port.
===================================
Via SQL*Plus, the following error occurs....

SQL> select * from mytable@dblink;
select * from mytable@dblink

ORA-02070: database dblink does not support outer joins in this context

Gateway does not like the 'large' column which is varchar(3270) in length. Also it is the only
column in the table that is a varchar.
Take that column out and SELECT works fine.

Here is the initdblink.ora file:

# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC

#
# HS init parameters
#
HS_FDS_CONNECT_INFO=dblink
HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
HS_FDS_TRACE_LEVEL=255

HS_LANGUAGE=american_america.we8iso8859p1
HS_NLS_NCHAR=UTF-8

#
# ODBC specific environment variables
#
set ODBCINI=/etc/odbc.ini

Please advise....

Edited by: user601798 on Oct 17, 2012 7:09 AM

Edited by: user601798 on Oct 17, 2012 7:09 AM

Edited by: user601798 on Oct 17, 2012 7:13 AM
This post has been answered by Kgronau-Oracle on Oct 19 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2012
Added on Oct 17 2012
12 comments
913 views