Dblink oracle to postgres with dg4odbc | ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line
Hi, i'm trying to create database link from a database Oracle 11g to PostgreSQL with DG4ODBC, and unixODBC
my configured to /etc/odbc.ini
[PostgreSQL]
Description = Test to Postgres
Driver = psqlodbc
Trace = Yes
TraceFile = /tmp/sql.log
Database = danieldb
Servername =
UserName = SA
Password = password
Port = 5432
Protocol = 6.4
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
my configured to /etc/odbcinst.ini
[ODBC]
CommLog=1
Debug=1
FileUsage=1
Pooling=No
Trace=1
[psqlodbc]
Description=PostgreSQL ODBC driver
Driver=/usr/lib64/psqlodbcw.so
CommLog=1
Debug=0
FileUsage=1
my configured to /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora
HS_FDS_CONNECT_INFO = PostgreSQL
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so
set ODBCINI=/etc/odbc.ini
my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC=
(SID_NAME=PostgreSQL)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)
(PROGRAM=dg4odbc)
(ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib")
my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora
PostgreSQL=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
(CONNECT_DATA =
(SID = PostgreSQL)
(HS = OK)
i'm try to created public database link :
CREATE PUBLIC DATABASE LINK "orapos" CONNECT TO "SA" IDENTIFIED BY "password" USING 'PostgreSQL';
when i used tnsping
[root@oracle-poc admin]# tnsping PostgreSQL
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 16-MAY-2013 20:34:19
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/xe/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))
OK (0 msec)
and last i try to use the database link :
SQL> select * from "tabel2"@orapos
2 ;
select * from "tabel2"@orapos
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from ORAPOS
Whats wrong with my configuration??
Thank you and best regards,
Daniel
Mike,
yes i've downloaded the ODBC driver manager..
for HS_FDS_SHAREABLE_NAME i use /usr/lib/psqlodbc.so
and i get this error when i call the db link(orpos)
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from ORAPOS
for HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbcw.so
and i get this error when i call the db link(orpos)
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
c
and when i used isql isql to call DNS(PostgreSQL) is success
whats wrong with my config?
about PostGres ODBC did you mean postgresql-odbc-08.04.0200-1.el6.x86_64 ??
Thank you and best regards,
Daniel
Similar Messages
-
ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
Scenario:
I am having difficulty getting ODBC connection between Oracle OWB app with an 11gR2 DB (running on a VirtualBox Linux) and SQL Server 2008 running directly on the host. (Windows 8)
I am trying to take a SQL Server 2008 feed into Oracle Ware house Builder, and think(!) I have read everything and configured it in accordance (but I presume not given 3 days of failed attempts to fix it). I have also read several blogs, hence there might be a few more settings in the configuration files than the formal documentation says, but these have come from blogs that have “Solved” problems for other similar situations.
The environments:
HOST:
Name: RESOLVEIT-PC
IP: 192.168.1.80
Windows 8 (64bit) , with system DSN ODBC connection ACME_POS created with 32 bit ODBC set up (This setting still shows up fine in the 64 bit ODBC).
GUEST VM:
Name: OraDBSvr.com
GUES fixed IP Address: 192.1.200
Oracle VirtualBox (4.2.16)
Oracle Redhat Linux 6 (x86)
Oracle 11gR2 Enterprise Edition (11.2.0.1.0)
ODBC: Freetds driver
Configuration files:
initacmepos.ora
HS_FDS_CONNECT_INFO = 192.168.1.80/SQLEXPRESS/ACME_POS
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SUPPORT_STATISTICS=FALSE
HS_RPC_FETCH_REBLOCKING= OFF
HS_FDS_FETCH_ROWS = 1
HS_FDS_SHAREABLE_NAME = /usr/local/lib/libtdsodbc.so
set ODBCINI=/opt/odbc/odbc.ini
# set <envvar>=<value>
odbc.ini
[ACME_POS]
Driver = FreeTDS
Description = ODBC Connection via FreeTDS
Trace = 1
Servername = 192.168.1.80
Database = dbo
odbcinst.ini
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/psqlodbc.so
Setup = /usr/lib/libodbcpsqlS.so
Driver64 = /usr/lib64/psqlodbc.so
Setup64 = /usr/lib64/libodbcpsqlS.so
FileUsage = 1
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc5.so
Setup = /usr/lib/libodbcmyS.so
Driver64 = /usr/lib64/libmyodbc5.so
Setup64 = /usr/lib64/libodbcmyS.so
FileUsage = 1
[FreeTDS]
Discription = TDS driver (Sybase / MS SQL)
Driver = /usr/local/lib/libtdsodbc.so
# Setup = /usr/local/lib/libtdsS.so
FileUsage = 1
CPTimeout =
CPReuse =
[oracle@oraDBsvr etc]$
freetds.conf
# $Id: freetds.conf,v 1.12 2007-12-25 06:02:36 jklowden Exp $
# This file is installed by FreeTDS if no file by the same
# name is found in the installation directory.
# For information about the layout of this file and its settings,
# see the freetds.conf manpage "man freetds.conf".
# Global settings are overridden by those in a database
# server specific section
[global]
# TDS protocol version
; tds version = 4.2
# Whether to write a TDSDUMP file for diagnostic purposes
# (setting this to /tmp is insecure on a multi-user system)
; dump file = /tmp/freetds.log
; debug flags = 0xffff
# Command and connection timeouts
; timeout = 10
; connect timeout = 10
# If you get out-of-memory errors, it may mean that your client
# is trying to allocate a huge buffer for a TEXT field.
# Try setting 'text size' to a more reasonable limit
text size = 64512
# A typical Sybase server
[egServer50]
host = symachine.domain.com
port = 5000
tds version = 5.0
# A typical Microsoft server
[ACME_POS]
host = 192.168.1.80
port = 60801 # also tried 1433
instance = SQLEXPRESS
tds version = 8.0
client charset = UTF-8
tsql -LH 192.168.1.80
ServerName RESOLVEIT-PC
InstanceName SQLEXPRESS
IsClustered No
Version 10.50.4000.0
tcp 60801
np \\RESOLVEIT-PC\pipe\MSSQL$SQLEXPRESS\sql\query
via RESOLVEIT-PC,0:1433
Oracle listener:
[oracle@oraDBsvr log]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = acmepos)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = dg4odbc)
(HS = OK)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oraDBsvr)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
[oracle@oraDBsvr log]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 16-SEP-2013 13:57:41
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oraDBsvr)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 16-SEP-2013 13:50:34
Uptime 0 days 0 hr. 7 min. 7 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/oraDBsvr/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oraDBsvr)(PORT=1521)))
Services Summary...
Service "acmepos" has 1 instance(s).
Instance "acmepos", status UNKNOWN, has 1 handler(s) for this service...
Service "dw" has 1 instance(s).
Instance "dw", status READY, has 1 handler(s) for this service...
Service "dwXDB" has 1 instance(s).
Instance "dw", status READY, has 1 handler(s) for this service...
The command completed successfully
Oracle tnsnames.ora
[oracle@oraDBsvr admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
dw =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dw)
acmepos =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=acmepos)
(HS=OK)
Oracle sqlnet.ora
[oracle@oraDBsvr admin]$ cat sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
ADR_BASE = /u01/app/oracle
I can connect from the linux server to SQL Server, and query the database:
[oracle@oraDBsvr etc]$ tsql -S acme_pos -U acme_dw_user -P acme1234
locale is "en_US.utf8"
locale charset is "UTF-8"
using default charset "UTF-8"
1> select last_name from dbo.employees;
2> go
last_name
Davolio
Fuller
Leverling
Peacock
Buchanan
Suyama
King
Callahan
Dodsworth
(9 rows affected)
1>
However, I can’t get a response through Oracle OWB , and I get:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
In the hs log file I get:
[oracle@oraDBsvr log]$ cat acmepos_agt_3821.trc
Oracle Corporation --- MONDAY SEP 16 2013 13:51:22.170
Heterogeneous Agent Release
11.2.0.1.0
HS Gateway: NULL connection context at exit
[oracle@oraDBsvr log]$
I am really stuck now and going round in circles and can’t see the wood for trees! Can anyone please help?!!
Many Thanks.
Rafe.Let us rewrite your ODBC DSN a little bit... Your current odbc.ini looks like:
[ACME_POS]
Driver = FreeTDS
Description = ODBC Connection via FreeTDS
Trace = 1
Servername = 192.168.1.80
Database = dbo
Let us change it a little bit so that we only need one config file - no odbcinst.ini nor freetds.conf file anymore:
[ACME_POS]
Driver =/usr/local/lib/libtdsodbc.so
Server = 192.168.1.80
Database
= dbo #### I have some doubts that you have a SQL Server database called dbo - one database that always exists is master - so as a test use master here or get the real database name of the SQL Server database you want to connect
Port = 60801 ## make sure it really is the correct port - best would be to check on the SQL server and then try telnet <ip> <port> if you can connect to the SQL server
TDS_Version = 8.0
QuotedId=YES
Especially the last 2 parameters are mandatory. TDS_Version specifies the TDS Version you have to use to connect to the SQL Server and QuotedID is required for DG4ODBC as it surrounds objevt names by double quotes.
What happens now when you try to connect with for example isql - the ODBC test utility shipped with the ODBC Driver manager?
In addition, could you please do me another favour and check the word size of DG4ODBC and the ODBC Driver Manager as well as the ODBC Driver - just execute:
file /u01/app/oracle/product/11.2.0/dbhome_1/bin/dg4odbc
file /usr/local/lib/libtdsodbc.so
file < the patch to your libodbc.so library>/libodbc.so
and post the output. -
ORA-28500: connection from ORACLE to a non-Oracle system returned
Hi All,
My database is in 10.2.0.4 and has a dblink to sqlserver. The dblink works fine for normal queries.
However when executing the following query from my oracle database
SELECT ROWNUM, "ad2_id", my_name, "data"
FROM "abc"@xyz.com
WHERE "startDateTime" > (TO_DATE ('20100120', 'YYYYMMDD') - 1)
AND "startDateTime" < TO_DATE ('20100120', 'YYYYMMDD')
AND ROWNUM < 101
I am getting the following error
Note : Line 8 is "startDateTime" > (TO_DATE ('20100120', 'YYYYMMDD') - 1)
ERROR at line 8:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from xyz
Note:
1.data is of datatype VARCHARN(1000) and if we ignore that field I am able to get the output
2. If I give the StartDateTime to a value without using to_date I am able to get the output.
Could you please tell me what could be the problem ?
Thanks in advance.user12061473 wrote:
If the edit masks doesn't match how come I am able to get output for the below query
SELECT ROWNUM, "ad2_id", my_name, "data"
FROM "abc"@xyz.com
WHERE "startDateTime" < TO_DATE ('20100120', 'YYYYMMDD')
AND ROWNUM < 101
The problem as far as I am know is if I try to select data and use both the where clauses I am getting the error.
Which is
SELECT ROWNUM, "ad2_id", my_name, "data"
FROM "abc"@xyz.com
WHERE "startDateTime" > (TO_DATE ('20100120', 'YYYYMMDD') - 1)
AND "startDateTime" < TO_DATE ('20100120', 'YYYYMMDD')
AND ROWNUM < 101
Error
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from xyzThat's a different error. The error you posted above was
"ORA-01861:literal does not match format string"which my posts addressed.
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from xyzis an entirely different message, related not to date formats but what looks like a distributed query. Unfortunately I am getting
No Response from Application Web Server
There was no response from the application web server for the page you requested.
Please notify the site's webmaster and try your request again later. when I look up ORA-28500 and ORA-02063 in the on-line documentation right now :(
Is your database connect string correct? The ones I use don't have .com attached to them. -
ORA-28500: connection from ORACLE to a non-Oracle system returned this
Hi ALL<
Please assist i am doing heterogeneous connectivity as oracle to sql server the below error encounterd after created db link.
SQL> select * from SqlTest@jadoo;
select * from SqlTest@jadoo
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-28541: Error in HS init file on line 20.
ORA-02063: preceding 2 lines from JADOOHi,
my dg4odbc.ora is as below:
$ cat initdg4odbc.ora
# 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 = mssqlserver
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/opt/ibm/WSII/odbc/ddl/lib/FRmsss21.so
# ODBC specific environment variables
set ODBCINI=/usr/opt/ibm/WSII/odbc/ddl/odbc.ini
# Environment variables required for the non-Oracle system
set <envvar>=<value>
$
MY odbc.ini file is as :
$ cat odbc.ini
[ODBC Data Sources]
DB2 Wire Protocol=DataDirect 5.1 DB2 Wire Protocol
Informix Wire Protocol=DataDirect 5.1 Informix Wire Protocol
Oracle Wire Protocol=DataDirect 5.0 Oracle Wire Protocol
Oracle=DataDirect 5.1 Oracle
SQLServer Wire Protocol=DataDirect 5.1 SQL Server Wire Protocol
Sybase Wire Protocol=DataDirect 5.1 Sybase Wire Protocol
mssqlserver=MS SQL Server 2008
[DB2 Wire Protocol]
Driver=/home2/alesio/odbc64v51/lib/dddb221.so
Description=DataDirect 5.1 DB2 Wire Protocol
AddStringToCreateTable=
AlternateID=
AlternateServers=
ApplicationUsingThreads=1
CatalogSchema=
CharsetFor65535=0
#Collection applies to OS/390 and AS/400 only
Collection=
ConnectionRetryCount=0
ConnectionRetryDelay=3
#Database applies to DB2 UDB only
Database=<database_name>
DynamicSections=200
GrantAuthid=PUBLIC
GrantExecute=1
IpAddress=<DB2_server_host>
LoadBalancing=0
#Location applies to OS/390 and AS/400 only
Location=<location_name>
LogonID=
Password=
PackageOwner=
ReportCodePageConversionErrors=0
SecurityMechanism=0
TcpPort=<DB2_server_port>
UseCurrentSchema=1
WithHold=1
[Informix Wire Protocol]
Driver=/home2/alesio/odbc64v51/lib/ddifcl21.so
Description=DataDirect 5.1 Informix Wire Protocol
AlternateServers=
ApplicationUsingThreads=1
CancelDetectInterval=0
ConnectionRetryCount=0
ConnectionRetryDelay=3
Database=<database_name>
HostName=<Informix_host>
LoadBalancing=0
LogonID=
Password=
PortNumber=<Informix_server_port>
ReportCodePageConversionErrors=0
ServerName=<Informix_server>
TrimBlankFromIndexName=1
[Oracle Wire Protocol]
Driver=/home2/alesio/odbc64v51/lib/ddora21.so
Description=DataDirect 5.1 Oracle Wire Protocol
AlternateServers=
ApplicationUsingThreads=1
ArraySize=60000
CachedCursorLimit=32
CachedDescLimit=0
CatalogIncludesSynonyms=1
CatalogOptions=0
ConnectionRetryCount=0
ConnectionRetryDelay=3
DefaultLongDataBuffLen=1024
DescribeAtPrepare=0
EnableDescribeParam=0
EnableNcharSupport=0
EnableScrollableCursors=1
EnableStaticCursorsForLongData=0
EnableTimestampWithTimeZone=0
HostName=<Oracle_server>
LoadBalancing=0
LocalTimeZoneOffset=
LockTimeOut=-1
LogonID=
Password=
PortNumber=1521
ProcedureRetResults=0
ReportCodePageConversionErrors=0
ServiceType=0
ServiceName=
SID=<Oracle_SID>
TimeEscapeMapping=0
UseCurrentSchema=1
[Oracle]
Driver=/home2/alesio/odbc64v51/lib/ddor821.so
Description=DataDirect 5.1 Oracle
AlternateServers=
ApplicationUsingThreads=1
ArraySize=60000
CatalogIncludesSynonyms=1
CatalogOptions=0
ClientVersion=9iR2
ConnectionRetryCount=0
ConnectionRetryDelay=3
DefaultLongDataBuffLen=1024
DescribeAtPrepare=0
EnableDescribeParam=0
EnableNcharSupport=0
EnableScrollableCursors=1
EnableStaticCursorsForLongData=0
EnableTimestampWithTimeZone=0
LoadBalancing=0
LocalTimeZoneOffset=
LockTimeOut=-1
LogonID=
OptimizeLongPerformance=0
Password=
ProcedureRetResults=0
ReportCodePageConversionErrors=0
ServerName=<Oracle_server>
TimestampEscapeMapping=0
UseCurrentSchema=1
[SQLServer Wire Protocol]
Driver=/home2/alesio/odbc64v51/lib/ddmsss21.so
Description=DataDirect 5.1 SQL Server Wire Protocol
Address=<SQLServer_host, SQLServer_server_port>
AlternateServers=
AnsiNPW=Yes
ConnectionRetryCount=0
ConnectionRetryDelay=3
Database=<database_name>
LoadBalancing=0
LogonID=
Password=
QuotedId=No
ReportCodePageConversionErrors=0
[Sybase Wire Protocol]
Driver=/home2/alesio/odbc64v51/lib/ddase21.so
Description=DataDirect 5.1 Sybase Wire Protocol
AlternateServers=
ApplicationName=
ApplicationUsingThreads=1
ArraySize=50
Charset=
ConnectionRetryCount=0
ConnectionRetryDelay=3
CursorCacheSize=1
Database=<database_name>
DefaultLongDataBuffLen=1024
EnableDescribeParam=0
EnableQuotedIdentifiers=0
InitializationString=
Language=
LoadBalancing=0
LogonID=
NetworkAddress=<Sybase_host, Sybase_server_port>
OptimizePrepare=1
PacketSize=0
Password=
RaiseErrorPositionBehavior=0
ReportCodePageConversionErrors=0
SelectMethod=0
TruncateTimeTypeFractions=0
WorkStationID=
[mssqlserver]
Driver=/usr/opt/ibm/WSII/odbc/ddl/lib/FRmsss21.so
Description=MS SQL Server Driver for AIX
Database=TraceTest
LogonID=TraceAdmin
Password=sqltest@123$
Address=10.10.1.92\MSSQL2008
QuotedId=YES
QEWSD=41143
AnsiNPW=YES
[ODBC]
IANAAppCodePage=4
InstallDir=/usr/opt/ibm/WSII/odbc/ddl
Trace=0
TraceDll=/usr/opt/ibm/WSII/odbc/dd/lib/odbctrac.so
TraceFile=odbctrace.out
UseCursorLib=0
$
Please advise.
Best Regards,
Edited by: user13707876 on 23-Aug-2012 04:54 -
ORA-28500: connection from ORACLE to a non-Oracle system
Hi, I need to connect to a OWB mysql database, but when making a query in sql plus sends me this error.
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][H006] The init parameter
<HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
ORA-02063: preceding 2 lines from MYSQLINK
listener.ora
# listener.ora Network Configuration File: C:\oraclebi\db\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclebi\db)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = MYSQL)
(ORACLE_HOME = C:\oraclebi\db)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
tnsnames.ora
# tnsnames.ora Network Configuration File: C:\oraclebi\db\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
BISE1DB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = bise1db)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
OTCL_MORDOR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.31.210)(PORT = 1620))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TEST)
MYSQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
(CONNECT_DATA =
(SID = MYSQL))
(HS = OK)
inithMYSQL.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO = MYSQL
HS_FDS_TRACE_LEVEL = off
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
system dsn --> MYSQL
databaselink
CREATE PUBLIC DATABASE LINK mysqlink CONNECT TO "oracle" IDENTIFIED BY "oracle" using 'ejemplo';
Database link created.
select * from empleado@mysqlink;
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specified
or
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][H006] The init parameter
<HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
ORA-02063: preceding 2 lines from MYSQLINK
tnsping
C:\Documents and Settings\Administrator>tnsping MYSQL
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-AUG-2
010 06:31:57
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclebi\db\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = bi.orate
chla.com)(PORT = 1521)) (CONNECT_DATA = (SID = MYSQL)) (HS = OK))
OK (30 msec)Use the setup failing with
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][H006] The init parameter
<HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
ORA-02063: preceding 2 lines from MYSQLINK
There is a typo in the name of you gateway init file. You posted the content of inithMYSQL.ora but the naming is init<SID>.ora which is in your case initMYSQL.ora.
In addition please keep in mind HSODBC has been desupported since 2008 and when starting a new configuration you should use the follow up product dg4odbc (Database Gateway for ODBC) V11. -
ORA-28500: connection from ORACLE to a non-Oracle system returned this mess
Hi,
I scheduled a job .. got this error what could be the reason ?
*** 2011-09-27 05:00:21.239
*** SESSION ID:(273.6080) 2011-09-27 05:00:21.239
*** CLIENT ID:([email protected]@Mozilla/4.0 (compatible; MSIE 8.0; Windows) 2011-09-27 05:00:21.239
*** SERVICE NAME:(SYS$USERS) 2011-09-27 05:00:21.239
*** MODULE NAME:(DBMS_SCHEDULER) 2011-09-27 05:00:21.239
*** ACTION NAME:(XXINSERTKEY) 2011-09-27 05:00:21.239
ORA-12012: error on auto execute of job 3311903
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. {08001,NativeErr = 17}[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). {01000,NativeErr = 53}
ORA-02063: preceding 2 lines from VISABG
ORA-06512: at "APPS.XXDMIG_INSERT", line 3
Thanks
VishwaORA-12012: error on auto execute of job 3311903
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. {08001,NativeErr = 17}[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). {01000,NativeErr = 53}
ORA-02063: preceding 2 lines from VISABG
ORA-06512: at "APPS.XXDMIG_INSERT", line 3Search MOS website for ORA-28500 and go through the docs!
Ora-28500 with Ms Sqlserver - Not associated with a trusted SQL Server connection [ID 333775.1]
How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install [ID 466225.1]
Select From Non-Oracle Database Using Dg4odbc Returns Ora-28500 From Sqlplus [ID 1254254.1]
ORA-28500: Login failed via Transparent Gateway when Connect to SQL Server 2000 on WinXP [ID 1165743.1]
Error Ora-28500 and Sqlstate I Issuing Selects From a Unicode Oracle RDBMS With Dg4odbc To Mysql or SQL*Server [ID 756186.1]
Thanks,
Hussein -
ORA-28500: connection from ORACLE to a non-Oracle system returned this mesg
Hi,
I am able to access ACCESS DB from local system having Oracle DB in the same machine using Oracle Heterogenious services.
Now when I try to access from remote system, I am getting error message as mentioned.
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC Microsoft Access Driver]
'(unknown)' is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file resides.
(SQL State: 00000; SQL Code: -1023)That's a specific problem with mapped drives, on metalink:
ORA-28500: not a valid path via hsodbc over a mapped drive
Doc ID: Note:266187.1
Werner -
Create a dblink oracle to postgres with dg4odbc
Hi,
I'm trying to create a dblink from a database Oracle (10.2.0.3) to PostgreSQL database (8.3.11) with DG4ODBC (11.2.0.1.0).
I've installed the postgres driver 64 bit :
file /usr/lib64/psqlodbc.so
/usr/lib64/psqlodbc.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), strippedI'm configuring the /oracle/.odbc.ini :
[record]
Driver=/usr/lib64/psqlodbc.so
Description = PostgreSQL ODBC
Servername = cdxlan035
Port = 5435
Username = rec_lct
Password = rec_lct
Database = REC_TESTI'm configuring the /oracle/product/DG4ODBC/hs/admin/initrecord.ora like this :
# HS init parameters
HS_FDS_CONNECT_INFO = record
HS_FDS_TRACE_LEVEL = 4
HS_FDS_TRACE_FILE_NAME = /oracle/product/DG4ODBC/hs/log/hsodbc.trc
HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbc.so
# ODBC specific environment variables
set ODBCINI=/oracle/.odbc.iniI'm configuring the /oracle/product/DG4ODBC/network/admin/listener.ora
LISTENER_HS =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036.douane)(PORT = 1525))
ADR_BASE_LISTENER_HS = /oracle/product/DG4ODBC
SID_LIST_LISTENER_HS =
(SID_LIST =
(SID_DESC =
(PROGRAM = dg4odbc)
(ORACLE_HOME = /oracle/product/DG4ODBC)
(SID_NAME = record)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/oracle/product/DG4ODBC/lib:/oracle/product/10.2.0/lib)
)I'm updating my /oracle/product/10.2.0/network/admin/tnsnames.ora :
RECORD2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = cdxlan036)(PORT = 1525))
(CONNECT_DATA =
(SID = record)
(HS=OK)
)In last i'm creating the dblink :
CREATE DATABASE LINK "RECORD" CONNECT TO "rec_lct" IDENTIFIED BY "rec_lct" USING 'RECORD2';When i'm trying to select my postgres database, that doesn't work. Here the /oracle/product/DG4ODBC/hs/log/record.log :
[oracle@cdxlan036 log]$ cat record_agt_30445.trc
Oracle Corporation --- MONDAY FEB 27 2012 17:11:31.204
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- MONDAY FEB 27 2012 17:11:31.204
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "record"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:record
Exiting hgogprd, rc=0
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=31
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=31
HOCXU_SEM_VER=102000
Entered hgolofn at 2012/02/27-17:11:31
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/psqlodbc.so"
Entered hgolofns at 2012/02/27-17:11:31
libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
peflerr=6521, libname=/usr/lib64/psqlodbc.so, funcname=SQLAllocHandle
hoaerr:28500
Exiting hgolofns at 2012/02/27-17:11:31
Failed to load ODBC library symbol: /usr/lib64/psqlodbc.so(SQLAllocHandle)
Exiting hgolofn, rc=28500 at 2012/02/27-17:11:31
Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 FUNCTION:hgoinit() ID:Loading ODBC aray of function ptrs
Entered hgoexit
HS Gateway: NULL connection context at exit
Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 FUNCTION:hgoexit() ID:Connection contextWhat's wrong with my configuration?
thanks for your help
regards,
MathieuHS_FDS_SHAREABLE_NAME needs to point to the ODBC driver manager. Commonly the ODBC driver manager is a separate library (common name is libodbc.so). It can be downloaded for example from unixodbc.org. Only a few rare ODBC drivers (some ODBC drivers from MySQL and also some IBM DB2 drivers have a built in ODBC driver manager into the ODBC driver itself, all other require a stand alone ODBC driver manager).
Background info:
In general the ODBC set up consists of 2 parts, an ODBC driver manager and an ODBC driver itself. The ODBC driver manager is providing generic ODBC functions and it is also responsible to load the driver specified in the odbc.ini file. The ODBC driver itself is then dedicated for a foreign database and provides specific foreign database functions. -
ORA-28500: connection Error
I am using Oracle gateway for sqlserver 11.2 on Oracle 11.2 database on Linux.
When i run the following query:
select * from prc.PrcIsr@sqlserver;
then after displaying about 10,000 rows, i get the following error message:
ERROR:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from SQLSERVERThis error comes for all the tables except for minor tables having less than 1000 rows.
Followings are the contents from the trace file:
hgopoer, line 233: got native error 5701 and sqlstate 01000; message follows...
[Oracle][ODBC SQL Server Driver][SQL Server]Changed database context to 'qai'. {01000,NativeErr = 5701}[Oracle][ODBC SQL Server Driver][SQL Server]Changed language setting to us_english. {01000,NativeErr = 5703}[Oracle][ODBC SQL Server Driver]Invalid connection string attribute {01S00}
Exiting hgopoer, rc=0 at 2011/10/12-07:01:30
hgocont, line 2685: calling SqlDriverConnect got sqlstate 01000
Entered hgolosf at 2011/10/12-07:01:30
Exiting hgolosf, rc=0 at 2011/10/12-07:01:30
DriverName:HGmsss23.so, DriverVer:06.00.0056 (b0041, U0039)
DBMS Name:Microsoft SQL Server, DBMS Version:09.00.4060
Exiting hgocont, rc=0 at 2011/10/12-07:01:30 with error ptr FILE:hgocont.c LINE:2685 FUNCTION:hgocont() ID:SQLDriverConnect
SQLGetInfo returns Y for SQL_CATALOG_NAME
hgopoer, line 233: got native error 104 and sqlstate 01000; message follows...
[Oracle][ODBC SQL Server Driver][libssclient24]ConnectionRead (recv()). {01000,NativeErr = 104}[Oracle][ODBC SQL Server Driver][libssclient24]General network error. Check your network documentation. {08S01,NativeErr = 11}
Exiting hgopoer, rc=0 at 2011/10/12-07:03:27
hgoftch, line 730: calling SQLFetch got sqlstate 01000
0 rows fetched
Exiting hgoftch, rc=28500 at 2011/10/12-07:03:27 with error ptr FILE:hgoftch.c LINE:730 FUNCTION:hgoftch() ID:Fetch resultset data
Listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.2.134)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = dg4msql)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(PROGRAM = dg4msql)
sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ADR_BASE = /u01/app/oracle
initdg4msql.ora
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[zeus.lhr.com]:1433//qai
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=DEBUG
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
# custom init parameters
HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
HS_NLS_LENGTH_SEMANTICS=CHAR
HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
HS_NLS_NCHAR=UCS2the provided trace file doesn't even show the read error.
It suddenly ends in the middle of a fetch:
SQLFetch: row: 27, column 4, bflsz: 16, bflar: -1
SQLFetch: row: 27, column 4, bflsz: 16, bflar: SQL_NULL_DATA
SQLFetch: row: 27, column 5, bflsz: 16, bflar: 16
SQLFetch: row: 27, column 5, bflsz: 16, bflar: 16, (bfl: 16, mbl: 16)
00: B80B0200 1C000000 00000000 00000000 [................]
SQLFetch: row: 27, column 6, bflsz: 4, bflar: 2
SQLFetch: row: 27, column 6, bflsz: 4, bflar: 2
Just to clarify - did you abort the fetch?
What about your network environment - are all machines located in the same network or is for example the SQL Server located outside of your network?
Is there an rdbms/log directory in your OH /u01/app/oracle/product/11.2.0/db_1?
If yes, does it contain a dump file dated with 2011/10/12-08:04:54?
If there is no rdbms/log directory, please create it and retry the select.
BTW, there's already dg4msql 11.2.0.2 and for some platforms also 11.2.0.3 available. Could you also please make sure you use the latest release? -
ORA-02063: preceding line from HSLINK
When i try to connect to ms sql from oracle (in solaries 11.1.0.7) i get the error connection from ORACLE to a non-Oracle system returned this message: preceding line from HSLINK
SQL> SELECT * FROM Banks@hslink;
SELECT * FROM Banks@hslink
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from HSLINK
TNSPING and lsnrctl status are okayhow can i compile the FreeTDS as 64bit in solaries 10 64bit?
i have the odbc manager as 64bit from package install.
bash-3.00$ file /usr/local/lib/libodbc.so
/usr/local/lib/libodbc.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped
but on freeTDS 0.91 version from source i try to compile but get a make error:
root@adnerpapp # export CPPFLAGS="-DSIZEOF_LONG_INT=8"
CPPFLAGS=-DSIZEOF_LONG_INT=8: is not an identifier
root@adnerpapp # export CFLAGS="-DBUILD_REAL_64_BIT_MODE"
CFLAGS=-DBUILD_REAL_64_BIT_MODE: is not an identifier
root@adnerpapp # CPPFLAGS="-DSIZEOF_LONG_INT=8"
root@adnerpapp # CFLAGS="-DBUILD_REAL_64_BIT_MODE"
root@adnerpapp # export CFLAGS
root@adnerpapp # export CPPFLAGS
root@adnerpapp # mkdir /usr/local/freetds
root@adnerpapp # ./configure prefix=/usr/local/freetds with-tdsver=8.0 --with-unixodbc=/usr/local/
on make i get the following error:
Making all in odbc
Making all in unittests
source='odbc.c' object='odbc.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
/bin/bash ../../libtool tag=CC mode=compile cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c -o odbc.lo odbc.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c odbc.c -KPIC -DPIC -o .libs/odbc.o
"odbc.c", line 958: warning: statement not reached
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c odbc.c -o odbc.o >/dev/null 2>&1
source='connectparams.c' object='connectparams.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
/bin/bash ../../libtool tag=CC mode=compile cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c -o connectparams.lo connectparams.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -DSIZEOF_LONG_INT=8 -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_REENTRANT -DBUILD_REAL_64_BIT_MODE -c connectparams.c -KPIC -DPIC -o .libs/connectparams.o
"connectparams.c", line 101: identifier redeclared: SQLGetPrivateProfileString
current : static function(pointer to const char, pointer to const char, pointer to const char, pointer to char, int, pointer to const char) returning int
previous: function(pointer to const char, pointer to const char, pointer to const char, pointer to char, int, pointer to const char) returning int : "/usr/local/include/odbcinst.h", line 205
cc: acomp failed for connectparams.c
*** Error code 1
make: Fatal error: Command failed for target `connectparams.lo'
Current working directory /freetds-0.91/src/odbc
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
k) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='unittests'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /freetds-0.91/src/odbc
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
k) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='replacements tds ctlib dblib odbc apps server pool'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /freetds-0.91/src
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
k) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='include src doc samples win32 vms'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
root@adnerpapp # -
Connect Oracle to Postgres with UTF8
Hello all.
I want to connect a Oracle 10gR2 in AL32UTF8 database to a Postgres 9.2 en_US.UTF-8 database.
Everything works if I have HS_LANGUAGE = AMERICAN_AMERICA.WE8ISO8859P1 or HS_LANGUAGE = american_america.we8mswin1252. Not everything... accentuated characters of my main language (Portuguese) don't get visible.
If I set it to AMERICAN_AMERICA.AL32UTF8, i get this message:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
c
Here are my configuration files:
odbc.ini:
[MoodlePostgres]
Description = Moodle Postgres DB
Driver = /usr/pgsql-9.2/lib/psqlodbcw.so
Server = ifbBDPGMoodle
Database = webbanca3
LogonID =
Password =
Port = 5432
Socket =
Option =
Stmt =
QuotedId = YES
CHARSET = en_US.UTF-8
[ODBC Data Sources]
MoodlePostgres = PostgreSQL
odbcinst.ini:
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/pgsql-9.2/lib/psqlodbcw.so
Setup = /usr/lib64/libodbcpsqlS.so
Driver64 = /usr/pgsql-9.2/lib/psqlodbcw.so
Setup64 = /usr/lib64/libodbcpsqlS.so
FileUsage = 1
tnsnames.ora:
webbanca3=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=172.18.1.34)
(PORT=1521)
(CONNECT_DATA=
(SID=webbanca3)
(HS=OK)
listener.ora:
LISTENER =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=webbanca3)
(ORACLE_HOME=/home/moodlepostgres/product/11.2.0/tg_1)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH=/usr/pgsql-9.2/lib:/home/moodlepostgres/product/11.2.0/tg_1/lib)
#CONNECT_TIMEOUT_LISTENER = 0
initi<sid>.ora:
# HS init parameters
HS_FDS_CONNECT_INFO = MoodlePostgres
#HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /usr/pgsql-9.2/lib/psqlodbc.so
#HS_FDS_SHAREABLE_NAME = /usr/pgsql-9.2/lib/psqlodbcw.so
HS_FDS_SUPPORT_STATISTICS = FALSE
#HS_LANGUAGE = american_america.we8mswin1252 # WORKS ... kinda... :-)
HS_LANGUAGE = american_america.al32utf8 # DOESN'T WORK
HS_KEEP_REMOTE_COLUMN_SIZE = ALL
# ODBC specific environment variables
set ODBCINI=/usr/local/etc/odbc.ini
set ODBCINST=/usr/local/etc/odbcinst.ini
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
The result of odbcinst -j is:
unixODBC 2.3.1
DRIVERS............: /usr/local/etc/odbcinst.ini
SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini
FILE DATA SOURCES..: /usr/local/etc/ODBCDataSources
USER DATA SOURCES..: /usr/loca/etc/odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
I'm running on Oracle Linux 6
Thank you.The root cause of your problem is the unixODBC Driver manager.
In my environment I can select fine from the Postgres Unicode database storing your characters when I use in my odbc.ini
ConnSettings
=SET CLIENT_ENCODING to 'UNICODE'
and in my gateway init these settings:
HS_NLS_NCHAR = UCS2
HS_LANGUAGE=american_america.al32utf8
SQL> select * from "public"."unicode"@POSTGRESQL_DG4ODBC_EMGTW_1123_DB;
col1 col2 col3
1 a a
2 ä ä
3 æ æ
4 ç ç
5 ã ã
6 â â
as soon as I change in my gateway init file the HS_LANGUAGE to an 8bit character set, for example to:
HS_LANGUAGE=american_america.we8iso8859p1
and
ConnSettings
=SET CLIENT_ENCODING to 'ASCII'
I get the same corrupted content like you get:
SQL> /
col1 col2 col3
1 a a
2 ä ä
3 æ æ
4 ç ç
5 ã ã
6 â â
6 rows selected.
Your unixODBC does not accept multibyte connect strings and fails with the error 28500 and an opening bracket '[' when you set a Unicode character set.
Did you compile unixODBC from source using --with-iconv-char-enc=UTF-8 option?
Looking at the trace file shows that you're still using 11.2.0.1 gateway release and it also seems you have set in your environment a language parameter like NLS_LANG:
First of all I would like to ask you to use 11.2.0.3 as this contains some major NLS fixes. In addition, could you then please unset any NLS_LANG variable before starting the gateway listener?
- Klaus -
Dblink erro ORA-02063: preceding line from ERP_PRD_LINK
HI all,
i have created a db link from PROD AND TEST database ( 10g) which are on different solaris sparc server.
db link deatils as follows.
OWNER
DB_LINK
USERNAME
HOST
CREATED
INTUSR
ERP_PRD_LINK
APPS
prod
04-AUG-09
but when i try to access data from test database using dblink i get error as follows...
ORA-02063: preceding line from ERP_PRD_LINK
Can You please help regarding same ...
Thanks,
Rajesh Rathod.HI..
what is the 4 digit oracle version you are using.
From metalink
ORA-02063: "preceding %s%s from %s%s" Cause: an Oracle error was received from a remote database link.
Action: refer to the preceding error message(s)
>
So let us know all the ORA errors.
Anand -
ORA-00028 combined with ORA-02063 - preceding line
Hello,
We had undergone an SAP release upgrade form SAP 4.7 to SAP 6.0.
From time to time, some of the customer legacy programs, dumps while trying to enter parameters in the Oracle database. They are not crashing every time but latley every night. After we restart then, they are working ok without a dump.
We are suspectin an Database peak, that is killing our session.
If you encounter this type or error before, can you please advise on how to proceed further. To singe out what parameter in Oracle or SAP may need updating ?
The error is like this:
Fehlertext der Datenbank...: "ORA-00028: your session has been
killed#ORA-02063: preceding line from VVS"
Fehlercode der Datenbank...: 28
Auslösende SQL-Anweisung...: "update v_sap_sbdc@vvs set sap_uebernahme_dat =
trunc ( sysdate ) where vvs_batch_nr = ? "
Interne Aufrufcodierung....: "[DBDS/NEW DSQL]"
Thanks and regards,
Adrian IrimesHello,
Thx for following up.
The ABAP code is :
EXEC sql.
update v_sap_sbdc@vvs
set sap_uebernahme_dat = trunc(sysdate)
where vvs_batch_nr = :zbtchnr
ENDEXEC.
We are suspecting that some think is happening in the database, also if we look to the record in st22, coudl it be also 2062 to blame ?
FC DBIF_DSQL2_SQL_ERROR
AP ZZVVS
AI ZZVVS
AL 2756
TD 4DBA75995C743122E1000000A0321162
XC CX_SY_NATIVE_SQL_ERROR
CM //bas/701_REL/src/krn/runt/abexsql.c#1
CF DsqlErrorHandler
CL 2062
RT 20110430015055
SR 16128
SP 24576
SV 0
SA 17751264
MU 14442872
MF 170688
SX 18446697011922745759
Thx and regards,
Adrian Irimes -
ORA-02063: preceding line from view from dblink
Hi,
Iam creating a standared report.using a query from a view.
view is built on a select query which retrives data from a view through a dblink. view exists in another schema.
report error:
ORA-01858: a non-numeric character was found where a numeric was expected
ORA-02063: preceding line from <<DBLink Name>>
when i run the query from sql workshop it executed perfectly.
any one has any suggestions??
ThanksAlways include the following information when asking a question:
<ul>
<li>Full APEX version</li>
<li>Full DB/version/edition/host OS</li>
<li>Web server architecture (EPG, OHS or APEX listener/host OS)</li>
<li>Browser(s) and version(s) used</li>
<li>Theme</li>
<li>Template(s)</li>
<li>Region/item type(s)</li>
</ul> -
Integra - ORA-02063: preceding line
Hi All,
We have Oracle Integra ( Applimation ) 5.1.3 and E Business suite 11.5.10.2 with Database version 10.2.0.3
In one of the snap shot definition of applimation, we are getting the below error message
tick_f_0000000008024634(A.SET_OF_BOOKS_ID) = 'MCE'
Error: Populate Snapshot Selects routine failed. ORA-00942: table or view does not exist
ORA-02063: preceding line from <SID>AMAGENT_LINK
<SID>AMAGENT_LINK is the link between Applimation and the E Business suite.
Is this error related to any issue in the E Business suite database ?
Few notes ask to increase DISTRIBUTED_TRANSACTIONS parameter in init file, but we have 10.2.0.3 and DISTRIBUTED_TRANSACTIONS parameter is a obsolete parameter above 9i database.
Please advice
Thanks & Regards,
RakeshRakesh,
Please review the following documents and see if it helps.
Note: 562035.1 - Snaphot occurrence fails with ORA-00942 error
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=562035.1
Note: 733132.1 - LOV ERRORS WHILE CREATING SNAPSHOT DEFINITION WITH NON STANDARD SCHEMAS
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=733132.1
If the above does not work and as changing the initialization parameter is not possible, then I would suggest you log a SR.
Regards,
Hussein
Maybe you are looking for
-
I usually don't complain or post much about my phone because problems are generally quickly fixed, but this update is just ridiculous. After updating to KitKat, my phone has the following problems: 1. Text Messages - I constantly get text message err
-
Can I connect my iPad to epson emp-x3 projector?
I have a keynote presentation on my iPad and an Epson Emp-X3 LCD projector. How do I connect the two to show the presentation?
-
See list of networks, but no connection
Recently, I have been having a strange problem with my iMac and airport network. It tells me tht I am connected to my network, but I'm not...no internet/email, etc. When I open the Airport Admin Utility, no base stations are present, even when I scan
-
I've figured out how to manipulate the welcome-file-list tag in web.xml for tomcat to bring up the desired web page if someone hits my site without specifying a page (e.g. www.mysite.com will take them to www.mysite.com/index.html). But, my index pag
-
Changed Service Provider and now I can't connect my time capsule
Must I do a soft reset on my time capsule to connect it to my new wireless network? I have an Orange Fibre Play network and even if I connect the Time Capsule using an ethernet cable, it can't see it.