Odbc from oracle to postgesql linux
Hello.
I have enterprise linux 6, oracle SE 11.2, postgresql 8.4.
I try to set ODBC by this scenario: http://docs.oracle.com/cd/B28359_01/gateways.111/b31042/configodbc.htm
In result I have error:
$ tnsping postgresql
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xxx)(PORT = 5432)) (CONNECT_DATA = (SID = postgresql)) (HS = OK))
TNS-12537: TNS:connection closed
When I try to connect by unixODBC, it connects:
$ isql -v postgresql
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
Please help where I'm wrong? :(
odbc.ini_
[ODBC Data Sources]
postgresql = PostgreSQL ODBC Driver
[postgresql]
Description = Test to Postgres
Driver = PostgreSQL
Trace = Yes
TraceFile = /tmp/sql.log
Database = postgres
Servername = xxx
UserName = postgres
Password = xxx
Port = 5432
Protocol = 6.4
ReadOnly = Yes
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
DSN=postgresql
[Default]
Driver = PostgreSQL
Description = PostgreSQL Data Source
Server = xxx
Port = 5432
UserName = postgres
Password = xxx
;Socket = 4096
;end odbc.ini
odbcinst.ini_
# Example driver definitions
# Driver from the postgresql-odbc package
# Setup from the unixODBC package
[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
# Driver from the mysql-connector-odbc package
# Setup from the unixODBC package
[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
hs/admin/initpostgresql.ora_
HS_FDS_CONNECT_INFO = postgresql
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
set ODBCINI= /etc/odbc.ini
listener.ora*
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = zzz)(PORT = 1521))
ADR_BASE_LISTENER = /home/splash/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC=
(SID_NAME=postgresql)
(PROGRAM=dg4odbc)
(ORACLE_HOME=/home/splash/oracle/product/11.2.0/dbhome_4)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/home/splash/oracle/product/11.2.0/dbhome_4/lib)
tnsnames.ora_
ORCLDOCS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcldocs)
postgresql =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = host_with_postgres)(PORT = 5432))
(CONNECT_DATA = (SID = postgresql))
(HS = OK)
)
I have enabled
This is in sqlnet client trace file:
(4294842112) [28-NOV-2011 16:37:35:650] nscall: error exit
(4294842112) [28-NOV-2011 16:37:35:650] nioqper: error from nscall
(4294842112) [28-NOV-2011 16:37:35:650] nioqper: ns main err code: 12537
(4294842112) [28-NOV-2011 16:37:35:650] nioqper: ns (2) err code: 12560
(4294842112) [28-NOV-2011 16:37:35:650] nioqper: nt main err code: 507
(4294842112) [28-NOV-2011 16:37:35:650] nioqper: nt (2) err code: 0
(4294842112) [28-NOV-2011 16:37:35:650] nioqper: nt OS err code: 0
(4294842112) [28-NOV-2011 16:37:35:650] niomapnserror: entry
(4294842112) [28-NOV-2011 16:37:35:650] niqme: entry
(4294842112) [28-NOV-2011 16:37:35:650] niqme: reporting NS-12537 error as ORA-12537
(4294842112) [28-NOV-2011 16:37:35:650] niqme: exit
(4294842112) [28-NOV-2011 16:37:35:650] niomapnserror: exit
(4294842112) [28-NOV-2011 16:37:35:650] niotns: Couldn't connect, returning 12537
(4294842112) [28-NOV-2011 16:37:35:650] niotns: exit
(4294842112) [28-NOV-2011 16:37:35:650] nigcui: entry
(4294842112) [28-NOV-2011 16:37:35:650] nigcui: Clr User Interrupt: hdl=1, prc=0x170a98e, ctx=0x1414c10.
(4294842112) [28-NOV-2011 16:37:35:650] nigcui: exit (0)
In listener trace also this errors.
Similar Messages
-
Oracle 10gR2 64bit odbc from oracle to sql server Win 2008 EE 64bits
Hi, I am having trouble with a 10gR2 64bits creation of odbc from oracle to sql server, I have follow several instruction with no luck at all. My OS is windows 2008 EE 64bits on the oracle and sql server server.
This is what I have done
1. in the $oracle_home/hs/admin directory
inithsodbc.ora
# HS init parameters
HS_FDS_CONNECT_INFO = hsodbc
HS_FDS_TRACE_LEVEL = off
2. in the $oracle_home/network/admin
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
(SID_DESC=
(SID_NAME=hsodbc)
(ORACLE_HOME=C:\oracle\product\10.2.0\db_1)
(PROGRAM=C:\oracle\product\10.2.0\db_1\hs\hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
And the tnsname.ora
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
PRUEBA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = prueba)
hsodbc =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=xx.xx.xx.xx)(PORT=1521))
(CONNECT_DATA=(SID=hsodbc))
(HS=OK)
I create the odbc connection an test it , the result is TEST PASSED
4. The i create a database link on my database
CREATE PUBLIC DATABASE LINK XYZ
CONNECT TO "sysdba" IDENTIFIED BY "masterkey"
USING 'hsodbc';
5 execute a select
SQL> select * from dual@XYZ;
select * from dual@XYZ
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from XYZ
6. When I check the listener log i'm getting this error
25-MAR-2011 11:48:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169870592)) * status * 0
25-MAR-2011 11:48:47 * (CONNECT_DATA=(SID=hsodbc)(CID=(PROGRAM=)(HOST=PRO)(USER=PRO\Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=xx.xx.xx.xx)(PORT=49329)) * establish * hsodbc * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
Edited by: user626125 on Mar 26, 2011 11:39 AM
Edited by: user626125 on Apr 12, 2011 2:49 PMHeterogeneous Connectivity
-
Ordered processing required from Oracle 11g on Linux to BizTalk Server
Need a viable solution enabling ordered processing (OP) of messages from Oracle 11g on Linux allowing for ordered delivery to subscribers in BizTalk over MSMQ.
We are currently running BizTalk 2010 (with Adapter Pack 2010) and are using ordered delivery for inbound messages to Oracle (received from msmq) but not for outbound messages since the Wcf-adapters doesn't support Ordered Processing in a receive port/location
(except for msmq). However, we do need to implement ordered processing for outbound messages also. It's a major drawback that the Wcf-adapters does not support ordered processing not even with restricted or limited functionality.
Our current implementation is polling Oracle using the Wcf-adapter calling PLSQL-package functions that handles all logic and returns a pre-built XML in a CLOB/string to BizTalk.
Since Oracle is hosted on Linux we can't switch the PLSQL-logic to use Oracle COM-automation and post XML directly into MSMQ which otherwise would have been a quick solution. Also no WebSphere MQ (MQSeries) exists on the premises ruling out that adapter.
Preferences:
- Stable and reliable message transfer with ordered processing from Oracle to BizTalk
- Messaging only pattern (generic) preferred over custom Orchestations (such as re-sequencing pattern)
- Products preferred over custom development (within reasonable price limits).
- Follow Microsoft best practices if possible
In-house development of a custom BizTalk adapter or a nt-service bridging from Oracle to MSMQ could be considered as an option.
regards
/Henrik
/HenrikThanks for the reply but it's not that easy I'm afraid, if it had then this post would never have been written.
We're retrieving one message at the time and with pollWhileDataFound=true so that's all good.
The problem is that the inner workings of the wcf-adapters are multithreaded and can not guarantee ordered delivery (which also has proven itself).
The answer why can be found in this post
http://blogs.msdn.com/b/paolos/archive/2009/11/17/customizing-and-extending-the-biztalk-wcf-adapters.aspx
Here's the crucial part: "The WCF Adapters create a separate ServiceHost and singleton service object of this class for each receive location to handle client requests for the lifetime of the BizTalk Host instance running WCF receive locations. The service
object uses multiple threads to process messages concurrently unless the WCF-NetMsmq receive locations are used with the Ordered processing property being selected"
(this is also why I'm wondering why Microsoft doesn't provide the option to run ordered delivery with other wcf-bindings than NetMsmq...)
The search for ordered processing out of Oracle continues...
regards
/Henrik -
How do I connect to a DB2 database from Oracle 10G on linux?
Hi
I have tryed to connect to a DB2 database from oracle 10 G on linux.
I have installed unixODBC and a db2 odbc driver. I can connect to the db2 using isql, but oracle comes with this error:
select * from testtable@acc_spc_gr2
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077]
Could not find symbol 'SQLAllocConnect' in dynamic library
DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library
'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'
ORA-02063: preceding 3 lines from ACC_SPC_GR2
What am I doing wrong? Any one have a guide to do this?
- Jesperthis is my complete configuration
Database_
-bash-3.2$ export ORACLE_SID=XE
-bash-3.2$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mié Jul 7 10:04:43 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Conectado a:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Platform_
Linux srvpdf 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 i686 i386 GNU/Linux
*/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/initDB2DATABASE.init*
#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 = ODBC_DSN
HS_FDS_CONNECT_INFO = prueba
HS_FDS_TRACE_FILE_NAME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/DB2DATABASE.log
HS_FDS_CONNECT_INFO = DB2DATABASE
#HS_FDS_TRACE_LEVEL = debug
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
# Environment variables required for the non-Oracle system
set DB2INSTANCE=is400
listener.ora_
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = DB2DATABASE)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM =hsodbc)
(ENVS = LD_LIBRARY_PATH = /opt/ibm/iSeriesAccess/lib:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.32)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.31)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
tnsnames.ora_
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvpdf)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
DB2DATABASE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost )(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = DB2DATABASE)
(HS=OK)
odbc.ini_
[prueba]
Description = iSeries Access ODBC Driver
Driver = iSeries Access ODBC Driver
System = xxx.xx.3.2
UserID = xxxxxx
Password = xxxxxx
Naming = 0
DefaultLibraries = QGPL
Database = CHERRYWEB
ConnectionType = 0
CommitMode = 2
ExtendedDynamic = 0
DefaultPkgLibrary = QGPL
DefaultPackage = A/DEFAULT(IBM),2,0,1,0,512
AllowDataCompression = 0
MaxFieldLength = 32
BlockFetch = 1
BlockSizeKB = 128
ExtendedColInfo = 0
LibraryView = 0
AllowUnsupportedChar = 0
ForceTranslation = 0
Trace = 0
odbcinst.ini_
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
[iSeries Access ODBC Driver]
Description = iSeries Access for Linux ODBC Driver
Driver = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
Driver64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup = /opt/ibm/iSeriesAccess/lib/libcwbodbcs.so
Setup64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
UsageCount = 1
CPTimeout =
CPReuse =
System = 172.18.3.2
User = inf5mito
Password = lonco3pue
NOTE1 = If using unixODBC 2.2.11 or later and you want the 32 and 64-bit ODBC drivers to share DSN's,
NOTE2 = the following Driver64/Setup64 keywords will provide that support.
Threading = 2
DontDLClose = 1
ODBC Driver_
-bash-3.2$ cd /opt/ibm/iSeriesAccess/lib
-bash-3.2$ ls -ltr
total 2260
-r-xr-xr-x 1 root root 443939 Apr 5 2008 libcwbxda.so
-r-xr-xr-x 1 root root 94504 Apr 5 2008 libcwbrc.so
-r-xr-xr-x 1 root root 16636 Apr 5 2008 libcwbodbcs.so
-r-xr-xr-x 1 root root 729572 Apr 5 2008 libcwbodbc.so
-r-xr-xr-x 1 root root 998060 Apr 5 2008 libcwbcore.so
and this is my error.
SQL> /
select from display@db2database*
ERROR en línea 1:
ORA-28500: la conexión de ORACLE a un sistema no Oracle ha devuelto este
mensaje:
*[Generic Connectivity Using ODBC][C077] Could not find symbol 'SQLAllocConnect'*
in dynamic library
*[C079] Failed to load dynamic library*
*'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'*
ORA-02063: 3 lines precediendo a DB2DATABASE
Edited by: user6669081 on 07-jul-2010 6:31 -
ODBC from Oracle to an other Database (Postgresql)
Hello,
I heared that it is possible with Oracle to make a "Database Link" so in Oracle I can make a query like
select * from myshema.mytable@myexterndb where ....
Is such a database link allowed with the Express Edition and how will I do this?
Thank you,
ChristianDatabase links to/from other Oracle databases work. As follows
SQL*Plus: Release 10.2.0.1.0 - Beta on Mon Oct 31 11:56:42 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect system
Enter password:
Connected.
SQL> create database link remote connect to hr identified by hr using 'xe';
Database link created.
SQL> select count(*) from employees@remote;
COUNT(*)
107
Note that this is doing a local loopback to the same database. However, you should also be able to access other Oracle databases provided you have the correct tnsnames.ora definition set up in the right directory - on my Windows system for the default XE install that is
C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN
Connection from Oracle Database XE to third party databases via the ODBC heterogeneous services should be possible as well, but I will need to download a 3rd party product to test it. Will do so later. In the meantime, here is a link to some doc that may help you test the setup yourself - http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14232/admin.htm#i1007209 -
Getting error in TNS connection from Oracle hosted on LINUX machine
Hello,
We moved our databases from Solaris to Linux servers. I am running one multithreaded process which creates a pool of db connection which are shared by threads. On moving to Linx db I am getting below error message
[SERVERERROR] ORA-12520: TNS:listener could not find available handler for requested type of server
My first port of call to resolve this error was to check TNS_ADMIN and tnsnames.ora but they are fine and then I checked DB in db some of threads got connected and did insert data error usually occured when thread release control of connection and another thread picks up.
Later I changed configuration to run only one single thread and then it works fine without any error. I also tried running same process with configured to create one thread from two different sessions and then one session got this error but other continued.
Here is sqlnet.log file generated
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:09
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=SchedulerDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:10
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:10
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:11
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:11
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:15
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:16
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:16
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:16
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:16
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:16
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:21
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:22
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:22
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:22
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:29
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Fatal NI connect error 12520, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MD1SILNXDB03)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TRO10G1)(CID=(PROGRAM=HBFCalcImputedObservationsDebug64)(HOST=md1sisun26)(USER=TROBat01))))
VERSION INFORMATION:
TNS for Solaris: Version 10.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.4.0 - Production
Time: 07-FEB-2012 07:50:29
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Can anybody help me here in resolving this error.
Thanks
Niraj Rathiuser13534563 wrote:
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MD1SISUN26.jda.corp.local)(PORT=1521)))
Services Summary...
Service "TRO10G1" has 1 instance(s).
Instance "tm4", status READY, has 1 handler(s) for this service...
I dont have permission to check log file of listner running on DB server. I will try to get that. but I do have sysdba rights.Interesting ... you have permission to see the result of 'lsnrctl status', you have sysdba rights on the db .... but you don't have permission to look at a log file? -
Nslookup fails were as tnsping works - Oracle Client on Linux 4.0
Hello Gurus,
I am able to connect to Oracle DB on the Linux server and not from Oracle client on Linux box. I have installed Oracle Client windows version on my laptop and same release and version for Linux on Linux box.
When I try to connect to the DB from Oracle Client installed on Linux box give me ORA-012545:Connect failed because target host or object does not exists.
I have tried tnsping and the server name (hostname) ,IP and DB of the server it works.
When I tried nslookup servername (hostname) , IP and DB it fails.
Anyone over there please help me out. This is something silly happening works on Windows Oracle client and not on Linux Oracle Client. One thing to do add Linux Oracle Client has Virtual IP to it. ITs host file has an entry for local host as follows : 127.0.0.1 localhost.local.domain localhost.
Also when I tried to create netservice names using netca it's just clean.
Please help me.
Thanks in advance
Thanks
ShivaHello Matt,
The reults
[oracle@ccsdd-sdap3 admin]$ tnsping mdb
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2008 10:20:16
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.17.180.110)(PORT = 1521))) (CONNECT_DATA = (SID = mdb) (SERVER=DEDICATED)))
OK (10 msec)
===========================================================
[oracle@ccsdd-sdap3 admin]$ tnsping ccsdd-sddb3.techteam.com
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2008 10:25:56
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=ccsdd-sddb3.techteam.com))(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.180.110)(PORT=1521)))
OK (10 msec)
===========================================================
[oracle@ccsdd-sdap3 admin]$ tnsping 172.X.X.X
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 12-MAY-2008 10:21:49
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.17.180.110))(ADDRESS=(PROTOCOL=TCP)(HOST=172.17.180.110)(PORT=1521)))
OK (10 msec)
==========================================================
tnsnames.ora
[oracle@ccsdd-sdap3 admin]$ more tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/app/oracle/product/10.2/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
mdb =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.X.X.X)(PORT = 1521))
(CONNECT_DATA =
(SID = mdb)
(SERVER=DEDICATED)
===========================================================
sqlnet.ora
[oracle@ccsdd-sdap3 admin]$ more sqlnet.ora
# sqlnet.ora Network Configuration File: /oracle/app/oracle/product/10.2/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES,ONAMES,HOSTNAME)
==========================================================
Yes these are the reults and the files. I think this will help us to determine the problem.
Thanks
Shiva -
ODBC connect to SQL Server 2005 from Oracle 10.2.0.3 32bit Linux
I’m unable to establish a connection from Oracle 10.2.0.3 32bit Linux to SQL Server 2005.
The ODBC driver is the 32bit DataDirect 5.3 drivers and when I do a status on the listener it does have a handler for SQLDB
Any help is appreciated.
Received the following error:
SQL> select count(*) from columns@SQLDB;
select count(*) from columns@SQLDB
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077]
Could not find symbol 'SQLAllocConnect' in dynamic library
DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library
'/app/DataDirect/lib/libodbc.so'
ORA-02063: preceding 3 lines from SQLDB
-----Contents of trace file------------------
Oracle Corporation --- THURSDAY JUL 10 2008 10:17:16.251
Version 10.2.0.3.0
hoagprd (2): ; hoagprd Entered.
HOACONN.C (244): ; [Generic Connectivity Using ODBC] version: 4.8.2.0.0080
HOACONN.C (288): ; Class version: 250
hoagprd (2): ; hoagprd Exited with retcode = 0.
hoainit (3): ; hoainit Entered.
(0): ; connect string is: defTdpName=SQLDB;SYNTAX=(ORACLE8_HOA, BASED_ON=
ORACLE8, IDENTIFIER_QUOTE_CHAR="", CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);
BINDING=<navobj><binding><datasources><datasource name='SQLDB' type='GENERIC_
ODBC_FOR_HS' connect='SQLDB'><driverProperties/></datasource></datasources><
remoteMachines/><environment><optimizer noFlattener='true'/><misc
year2000Policy='-1' consumerApi='1' sessionBehavior='4'/><queryProcessor
parserDepth='2000' tokenSize='1000' noInsertParameterization='true'
noThreadedReadAhead='true' noCommandReuse='true'/><debug driverTrace='true'
generalTrace='true'/></environment></binding></navobj>
ORACLE GENERIC GATEWAY Log File Started at 2008-07-10T10:17:16
hoainit (3): ; hoainit Exited with retcode = 0.
hoalgon (7): ; hoalgon Entered. name = dbuser.
sysbase.c (677): ; libodbcinst.so: cannot open shared object file: No such
file or directory
DB_ODBC_INTERFACE (718): ; [C077] Could not find symbol 'SQLAllocConnect' in
dynamic library
DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library '/app/
DataDirect/lib/libodbc.so'
DB_ODBC_INTERFACE (727): ; [C077] Could not find symbol 'SQLAllocConnect' in
dynamic library
DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077] Could not find symbol '
SQLAllocConnect' in dynamic library
DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library '/app/
DataDirect/lib/libodbc.so'
nvRETURN (./drv_bind.c 230): -2220
nvRETURN (./nav_bind.c 298): -2220
hoalgon (7): ; hoalgon Exited with retcode = 28500.
hoaexit (6): ; hoaexit Entered.
hoaexit (6): ; hoaexit Exited with retcode = 0.
(0): ; Closing log file at THU JUL 10 10:17:16 2008.
--------------end of trace file ---------------
--------TNS entry ----------
SQLDB=
(DESCRIPTION =
(ADDRESS =(PROTOCOL = TCP)
(Host = oracledbhost)
(Port = 1521)
(CONNECT_DATA = (SID =SQLDB)
(HS=OK)
-------Listener.ora entry----------
(SID_DESC=
(SID_NAME=SQLDB)
(ORACLE_HOME=/app/oracle10g/product/10.2)
(PROGRAM=hsodbc)
-------initSQLDB.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 = SQLDB
HS_FDS_TRACE_LEVEL = 4
HS_FDS_TRACE_FILE_NAME=/app/DataDirect/SQLDB.trc
HS_FDS_SHAREABLE_NAME=/app/DataDirect/lib/libodbc.so
# ODBC specific environment variables
set ODBCINI=/app/DataDirect/odbc.ini
------odbc.ini entry------------
[SQLDB]
Driver=/app/DataDirect/lib/ivmsss23.so
Description=DataDirect 5.2 SQL Server Wire Protocol
Address=SQLServerhost,1401
AlternateServers=
AnsiNPW=Yes
ConnectionRetryCount=0
ConnectionRetryDelay=3
Database=SQLServerDB
LoadBalancing=0
LogonID=
Password=
QuotedId=No
SnapshotSerializable=0The error message is indicating problems loading the driver manager.
A common issue on Linux (especially on Suse Linux) is related to library caching. First of all make sure you add the LD_LIBRARY_PATH to your listener.ora file to guarantee the correct libraries will be loaded. Your SID section will then look like:
(SID_DESC=
(SID_NAME=SQLDB)
(ORACLE_HOME=/app/oracle10g/product/10.2)
(ENVS=LD_LIBRARY_PATH=/app/oracle10g/product/10.2/lib:/app/DataDirect/lib)
(PROGRAM=hsodbc)
After changing the listener.ora file stop and start the listener.
Details about the set up can be found in Metalink note:
Note.264567.1 P216. How To Setup Generic Connectivity - HSODBC - on Linux
If this does not help enable strace and check out from which location libodbc.so is being loaded.
Please be also aware HSODBC has been desupported 15th of March. As you start a new project you should proceed with the follow up product DG4ODBC. -
Tnsping timed out using dg4odbc from Oracle to MYSQL through ODBC
Hi,
I encountered problem when trying to connect from Oracle to MYSQL using dg4odbc, hope you can shed some light
Oracle database is 11.1.0.7 on SUSE Linux 64-bit.
Since the application which runs on MYSQL DB only offers ODBC driver on Windows platform, so I installed the 32-bit ODBC driver (from ServiceNow) on a 32-bit windows server (driver download from http://wiki.service-now.com/index.php?title=ODBC_Driver) .
created system DSN: MYSQLDEV, The DSN connection works fine. I then installed Oracle 11.2.0.1 gateway for ODBC 32-bit on the same windows server, the following configurations were done:
On 32-bit Windows server:
in gatewayHome\hs\admin
initMYSQLDEV.ora:
# HS init parameters
HS_FDS_CONNECT_INFO = MYSQLDEV
HS_FDS_TRACE_LEVEL = DEBUG
in gatewayHome\network\admin:
listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = abcdes.sda.sdva.com)(PORT = 1521))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=MYSQLDEV)
(ORACLE_HOME=C:\product\11.2.0\tg_1)
(PROGRAM=dg4odbc)
ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
stop and started listener on windows server and check listener status
C:\product\11.2.0\tg_1\bin>lsnrctl status listener
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-MAR-2012 21:42:08
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abcdes.sda.sdva.com)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 29-MAR-2012 21:11:36
Uptime 0 days 0 hr. 30 min. 32 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\product\11.2.0\tg_1\network\admin\listener.ora
Listener Log File c:\product\11.2.0\tg_1\diag\tnslsnr\abcdes\list
ener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=abcdes.sda.sdva.com)(PORT=1521)))
Services Summary...
Service "MYSQLDEV" has 1 instance(s).
Instance "MYSQLDEV", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
On Linux server where Oracle DB resides.
Added the following tns entry "jelly" on the Linux server ORACLE_HOME/network/admin:
jelly =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)
(HOST=abcdes.sda.sdva.com)
(PORT=1521))
(CONNECT_DATA=(SID=MYSQLDEV))(HS=OK)
tnsping from Linux server (64-bit) failed with timeout error:
tnsping jelly
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 29-MAR-2012 21:12:38
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=abcdes.sda.sdva.com) (PORT=1521)) (CONNECT_DATA=(SID=MYSQLDEV))(HS=OK))
TNS-12535: TNS:operation timed out
tnsping from Windows server works fine: (added same tnsnames entry on windows server for testing purpose only)
C:\product\11.2.0\tg_1\bin>tnsping jelly
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 29-MAR-2
012 21:45:20
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\product\11.2.0\tg_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=abcdes.sda.sdva.com)(PORT=1521)) (CONNECT_DATA=(SID=MYSQLDEV)) (HS=OK))
OK (20 msec)
if listener is not listening to the service, then the tnsping on the windows server should fail as well.
I don't know why only the tnsping from Linux failed, is it due to the 32-bit ODBC uncompatibility with 64-bit oracle server? or my configuration problem?
Of course, when I created the DB link from oracle, the connection failed with
create database link mysqldev connect to xxxx identified by "xxxxx" using 'jelly';
Database link created.
select * from tab1;
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from MYSQLDEV
Thanks for your help,Hi Mike,
This is part of the tnsping.trc file which contains the error. IP address is in the tnsnames entry with this tnsping.
nsopen: opening transport...
nttcon: entry
nttcon: toc = 1
nttcnp: entry
nttcnp: creating a socket.
nttcnp: exit
nttcni: entry
nttcni: Tcp conn timeout = 0 (ms)
nttcni: trying to connect to socket 5.
ntt2err: entry
ntt2err: soc 5 error - operation=1, ntresnt[0]=505, ntresnt[1]=110, ntresnt[2]=0
ntt2err: exit
nttcni: exit
nttcon: exit
nserror: entry
nserror: nsres: id=0, op=65, ns=12535, ns2=12560; nt[0]=505, nt[1]=110, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
nsopen: unable to open transport
nsiocancel: entry
nsiofrrg: entry
nsiofrrg: cur = 53b9f8
nsbfr: entry
nsbaddfl: entry
nsbaddfl: normal exit
nsbfr: normal exit
nsiofrrg: exit
nsiocancel: exit
nsvntx_dei: entry
nsvntx_dei: exit
nsopenfree_nsntx: nlhthdel from mplx_ht_nsgbu, ctx=53a7e0 nsntx=53ade0
nsiocancel: entry
nsiofrrg: entry
nsiofrrg: exit
nsiocancel: exit
nsmfr: entry
nsmfr: 2712 bytes at 0x53ade0
nsmfr: normal exit
nsmfr: entry
nsmfr: 1528 bytes at 0x53a7e0
nsmfr: normal exit
nsopen: error exit
nscall: error exit
nscall: entry
nscall: connecting...
nsclose: entry
nsclose: normal exit
nladget: entry
nladget: exit
nsmfr: entry
nsmfr: 264 bytes at 0x528900
nsmfr: normal exit
nladtrm: entry
nladtrm: exit
nscall: error exit
nlse_term_audit: entry
nlse_term_audit: exit
Thanks, -
Odbc driver error while connecting with Oracle BI in Linux
I have Oracle BI Server, Presentation Service and Oracle 11g Client installed in RHEL 5. Oracle BI client is installed in Windows so that I can use Admin tool.
I have created a repository in Windows for sh schema(by creating ODBC). After that I transferred this repository to the ..server/repository in the linux server.
I have installed Oracle ODBC Driver from EASYSOFT and added one odbc data source for sh schema in the ../setup/odbc.ini.
My ODBC setting is as follows.
[ODBC Data Sources]
sh=Oracle in OraDb11g_home1
[sh]
Driver=/usr/local/easysoft/oracle/libesoracle.so
Database=//ipaddress_of_ORACLE_SERVER:port/database_service_name
UID=sh
PWD=sh
When I am trying to query through Oracle Answers I am getting the following error.
Odbc driver returned an error (SQLExecDirectW).
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down. (HY000)
SQL Issued: SELECT Customers."Cust First Name" saw_0 FROM SH ORDER BY saw_0
I have enabled tracing, but I am not getting any clue from trace output.
Can anybody please help.
If it is because of wrong driver, can anybody suggest a proper ODBC Driver for Oracle and how to configure it. If the driver is OK and configuration is wrong, can anybody tell me how to create system dsn in linux?
Thanking you in advance.don't use ODBC for Oracle, use OCI
search on the forum, there's plenty of information about it. -
Linking to SQL Server from Oracle 10g on 64bit Linux
I have this working, so I thought I would post my steps.
In versions 8 to 10 of Oracle, the software for making these connections was known as Heterogeneous Services. It was 32bit only software and the actual binary file that was executed when querying a non oracle database was $ORACLE_HOME/bin/hsodbc. When a query was made to the linked database, a process was started on the machine with the name of hsodbcXXX (where XXX is the name of the DSN).
In version 11g of Oracle this software is now referred to as Database Gateways and there is a 64bit version as well as a 32bit version. The binary file that is executed in this case is $ORACLE_HOME/bin/dg4odbc.
Fortunately the 64bit Database Gateway software can also be used with Oracle 10g databases as long as it is up to version 10.2.03 and has the odbc compatibility patch installed. (5965763).
To make use of this, we need to install the 11g ODBC Gateway into a separate ORACLE_HOME and start a listener from that environment. We can then make use of that listener from the 10g environment.
So here is what I did to get this working: (Note: DSN = MyDSN)
1. Download and install 64bit ODBC driver with support for 64-bit ULEN from Easysoft. The file is named odbc-sqlserver-1.1.4-linux-x86-64-ul64.tar. You'll need to email Easysoft support for the URL. Create the DSN entry as part of the install. At the end of the process it can test the DSN. The query should come back with info about the SQL Server. Test the connection using isql from the /opt/easysoft/unixODBC/bin directory to verify that it works as well (/opt/easysoft/unixODBC/bin/isql –v MyDSN). Note, I installed easysoft driver under /opt rather than the /usr/local which is the default. /usr/local/easysoft is a symlink to /opt/easysoft.
2. Install ODBC gateway via the 11g Gateways installer. You can do a custom install and deselect all but the ODBC Gateway component. (http://download.oracle.com/otn/linux/oracle11g/linux.x64_11gR1_gateways.zip)
3. Create a /home/oracle/11g_environment.sh script that sets 11g ORACLE_HOME, PATH, and LD_LIBRARY_PATH variables. It should look something like this:
#set ORACLE ENV vars for 11g
ORACLE_HOME=/u01/app/oracle/product/11.1.0/tg_1 # (assuming that is where ODBC Gateway was installed)
PATH=/bin:/usr/bin:/u01/app/oracle/product/11.1.0/tg_1/bin:/opt/easysoft/bin:/opt/easysoft/unixODBC/bin
LD_LIBRARY_PATH=/opt/easysoft/lib:/opt/easysoft/unixODBC/lib:/u01/app/oracle/product/11.1.0/tg_1/lib
export ORACLE_HOME
export PATH
export LD_LIBRARY_PATH
4. Create $ORACLE_HOME/hs/admin/initMyDSN.ora, $ORACLE_HOME/network/admin/listener.ora, and $ORACLE_HOME/network/admin/tnsnames.ora under 11g structure. They are as follows:
initMyDSN.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=MyDSN
HS_FDS_TRACE_LEVEL=0
HS_FDS_TRACE_FILE_NAME=MyDSN.trc
HS_FDS_SHAREABLE_NAME=/opt/easysoft/unixODBC/lib/libodbc.so
HS_FDS_SUPPORT_STATISTICS=FALSE
# ODBC specific environment variables
#set ODBCINI=/etc/odbc.ini
#set ODBCINSTINI=/etc/odbcinst.ini
#set LD_LIBRARY_PATH=/opt/easysoft/lib:/opt/easysoft/unixODBC/lib:/u01/app/oracle/product/11.1.0/lib
#set PATH=$PATH:/opt/easysoft/unixODBC/bin:/opt/easysoft/bin/
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
listener.ora
MyDSN =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
SID_LIST_MyDSN =
(SID_LIST =
(SID_DESC=
(SID_NAME=MyDSN)
(ORACLE_HOME = /u01/app/oracle/product/11.1.0/tg_1)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH=/opt/easysoft/lib:/opt/easysoft/unixODBC/lib:/u01/app/oracle/product/11.1.0/tg_1/lib)
tnsnames.ora
# tnsnames.ora Network Configuration File:
# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
MyDSN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST=localhost)(PORT=1522))
(CONNECT_DATA=(SID=MyDSN))
(HS=OK)
5. Add another entry for MyDSN in /u01/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora so tnsping works in 10g environment as well.
MyDSN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST=localhost)(PORT=1522))
(CONNECT_DATA=(SID=MyDSN))
(HS=OK)
*** Notice that the MyDSN listener runs on a different port (1522) as it is a separate listener.
6. Login to machine as user oracle and source the 11g environment script. “source ~/11g_environment.sh”. Now start the listener. “cd $ORACLE_HOME/bin”. “./lsnrctl start MyDSN”.
7. Login to a new shell as user oracle with a 10g environment.
8. Run sqlplus and create the database link. “CREATE PUBLIC DATABASE LINK SQLSERVER connect to “<someuser>” IDENTIFIED BY “<somepass>” USING ‘MyDSN’;”
9. test the link. “select * from information_schema.tables@SQLSERVER;”
If it is successfull, you should see a system process named "dg4odbcMyDSN".So what have you found out for yourself so far (considering the solution to this is easily found on the web)?
Have you looked up Heterogeneous Services? -
Access remote MonetDB from Oracle using ODBC
Hello,
I really need your help, I have been trying for more that one week to figure out what is the problem without success
Here is the details of my problem:
I have oracle 11g installed on machine1 (ubuntu 64bit) , and I have MonetDB installed on machine2 (ubuntu 64bit, ip= 192.168.56.101)
I need to access MonetDB database from oracle.
I followed the configurations steps but I get always the following error:
select "id" from "test"@monetdb;
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[unixODBC][MonetDB][ODBC Driver 11.11.11]Client unable to establish connection
{08001}
ORA-02063: preceding 2 lines from MONETDB
I installed unixODBC on the machine1 and I used MonetDB ODBC driver which generates the following odbc.ini file
[monetdb]
Description = MonetDB
Driver = /usr/lib64/libMonetODBC.so
Host = 192.168.56.101
Port = 50000
Database = demo
User = monetdb
Password = monetdb
Debug =
Here are my configurations:
tnsnames.ora:
monetdb =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST =localhost)
(PORT =1521)
(CONNECT_DATA =
(SID=monetdb))
(HS = OK))
Listner.ora
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=monetdb)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:$ORACLE_HOME/lib)
In $ORACLE_HOME/hs/admin I created the file initmonetdb.ora
HS_FDS_CONNECT_INFO=monetdb
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_SUPPORT_STATISTICS=FALSE
HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
HS_LANGUAGE=american_america.we8iso8859p1
set ODBCINI=/etc/odbc.ini
when I do lsnrctl start i get the following
Log messages written to /u01/app/oracle/diag/tnslsnr/OracleUbuntu/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 26-OCT-2013 01:32:37
Uptime 0 days 0 hr. 0 min. 0 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/OracleUbuntu/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "monetdb" has 1 instance(s).
Instance "monetdb", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
any ideas why I get this error??
Regards
BaraaHi,
Firstly, try to configure your gateway listener on another port than 1521 as it is the default one for database. Don't forget to change also the port in TNSNAMES.ORA.
Then use the host machine or ip address rather than the local host in the LISTENER.ORA and TNSNAMES.ORA.
Avoid to use $ORACLE_HOME in the ENVS from LISTENER.ORA but use a complete PATH.
Then test your ODBC connection outside Oracle. What is the result?
Try to get result of the following commands on the Oracle machine1 :
$cd /usr/bin
$./odbcinst -q -d
$./odbcints -q -s
Change parameter in gateway init file:
HS_FDS_TRACE_LEVEL=DEBUG
Execute your SELECT statement:
select "id" from "test"@monetdb;
Get the gateway trace file in /u01/app/oracle/product/11.2.0/dbhome_1/hs/log and send us
Thanks
Regards,
Mireille MEGE -
ODBC connect from Oracle to MySQL!
Dear All,
I know its not very much related to the subject of this forum but DBA's often have to perform such tasks.
I am in process of developing replication between Oracle and MySQL. For this I have planned to create materialized views in oracle that query MySQL database.
I am using Oracle 11gR1 on Linux for Oracle Server and MySQL is on windows based server version is 5.1.
I am stuck at the very first step that is to create a database link between Oracle and MySQL.
On Oracle's server, I did the following:
Installed unixODBC rpm (Installed successfully)
Installed mysql-connector-odbc (Installed successfully)
when i write this command odbcinst -j it gives the following information
unixODBC 2.2.11
D|RIVER........... : /etc/odbcinst.ini ; (my comments : Files exists)
SYSTEM DATA SOURCE : /etc/odbc.ini (my comments : File exists )
USER DATA SOURCE : /root/.odbc.ini (my comments : File DO NOT exists)
Now i tried to add the following entry in the file /etc/odbc.ini
[bssdata]
Driver = MySQL ODBC 3.51 Driver
DATABASE = bssdata
DESCRIPTION = views_on_bssdata
PWD =
PORT = 3306
SERVER = 192.168.0.68
UID = root
Now when i try to check the connectivity with the command:
isql -v bssdata root
Error: data source name not found, and no default driver specified.
ERROR: Could not SQLConnect
Anyone have tried this before, please help me out of it.
Regards, ImranHope these links help you :
http://www.pythian.com/news/1554/how-to-access-mysql-from-oracle-with-odbc-and-sql/
http://sysinfo.bascomp.org/2008/03/setting-oracle-heterogenous-service-mysql-to-oracle/
http://www.idevelopment.info/data/Oracle/DBA_tips/Heterogeneous_Services/HETERO_2.shtml
http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
Regards
Rajesh -
Select DBase (.dbf) data from Oracle on Linux
How to select DBase (.dbf) data from Oracle on Linux ?
dbf files connected to Linux form NetWare server as 'ncpmount'.
Oracle has access as oracle 'Directory' object.If you have an ODBC driver for it and are using Oracle 10g you can use Generic Connectivity. For more information on Generic Connectivity refer to the Chap 7 of the Heterogeneous Connectivity Administrator's Guide.
http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10764/gencon.htm#1005900 -
Select DBASE IV data from Oracle on Linux
Can I select DBASE IV data from Oracle on Linux
You can connect to DBase IV from Oracle by configuring Oracle Heterogenous Services. That will let you create a database link from Oracle to a non-Oracle database. Since there isn't a specific DBASE IV gateway, though, I believe you'll have to use the ODBC gateway, which would probably imply the necessity of a Windows box hosting Heterogenous Services.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Maybe you are looking for
-
CS3 Standard - Has stopped working
I have just begun receiving error messages,"Adobe[Program]CS3 has stopped working..A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. This happens when I try to open Illus
-
Launchd .plist breaks when periodic daily runs
Why does my launchd .plist break when periodic daily runs? I wrote a script basically like this <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <pl
-
Abap basics material documents
Hi Gurus, i am intrested to learn basic in Abap i want to make my carrrier in it so i kindky request you to plz send material my [email protected] Thanks in Advance, Edited by: Krishna on Apr 23, 2008 2:16 PM Edited by: Krishna on Apr 23, 2008 2:17
-
How can I move my Tap Paradise Cove data between Apple Devices
Can anyone tell me how I can move my saved data, like my merchants and coins, etc., from my iPod Touch to an iPad? Is this possible or not?
-
I am finally going to replace my original intel Mac Pro for one of the newer configurations but amd wondering what is best for the work I do. Other than photo manipulation in Photoshop and Lightroom it will be used primarily for Logic user and upgard