Home » RDBMS Server » Networking and Gateways » Heterogeneous Sources Link issue in Oracle (Oracle 10 XE, Windows XP)
Heterogeneous Sources Link issue in Oracle [message #345314] Tue, 02 September 2008 23:46
piduruviswa
Messages: 12
Registered: May 2007
Location: Singapore
Junior Member
Hi All,

I have issue in the Oracle HS link. I have a requirement to read the SQL server and Postgresql DB's data from Oracle on a windows box.

I have succeeded in reading SQL server tables data from Oracle but for Postgresql it is giving some error. Any comments is appreciated.

FYI: Oracle and SQL server are on the same box but Postgres is in a different machine, but ODBC connection test for Postgres is successful. Not sure if I have missed out something.

Here are the details.

1. Installed Postgres ODBC drivers in the windows box and created a DSN (PS) by filling the required details and tested the connection. It works fine.

2. Created a file initPS.ora in $ORACLE_HOME/hs/admin
# 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 = PS
HS_FDS_TRACE_LEVEL = OFF

3. In listener.ora file
$ORACLE_HOME/network/admin/listener.ora

LISTENERPS =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=Vish)(PORT=1521))
(ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))

SID_LIST_LISTENERPS=
(SID_LIST=
(SID_DESC=
(SID_NAME=PS)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM=hsodbc)
)
)

4. In tnsnames.ora file
$ORACLE_HOME/network/admin/tnsnames.ora
PS=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = Vish)
(PORT = 1521))
(CONNECT_DATA=(SID=PS))
(HS = OK))

5. Start the new Listener
C:\Documents and Settings\Administrator>lsnrctl start LISTENERPS

LOG:

C:\Documents and Settings\Administrator>lsnrctl start LISTENERPS

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-SEP-2008 12:32
:17

Copyright (c) 1991, 2005, Oracle. All rights reserved.

Starting tnslsnr: please wait...

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\ad
min\listener.ora
Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log
\listenerPS.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Vish)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc
)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=Vish)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENERPS
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 03-SEP-2008 12:32:20
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\a
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\l
og\listenerPS.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Vish)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
Services Summary...
Service "PS" has 1 instance(s).
Instance "PS", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

6. Validate the DSN connection
C:\>tnsping PS

C:\Documents and Settings\Administrator>tnsping PS

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-SEP-2
008 12:35:44

Copyright (c) 1997, 2005, Oracle. All rights reserved.

Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = Vish) (PORT = 1521)) (CONNECT_DATA=(SID=PS)) (HS = OK))
OK (80 msec)

7. Create a Database Link within Oracle Database
Create database link PS connect to "user_name" identified by "password" using 'PS';

8. Connecting the Postgres tables from Oracle.
SQL> select * from vs_sample@PS;
select * from vs_sample@PS
*
ERROR at line 1:
ORA-02068: following severe error from PS
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=%s
ORA-28509: unable to establish a connection to non-Oracle system

Pls help

Rgds
Vish
Previous Topic: Increasing number of sessions in TNS LISTENER
Next Topic: ERROR:ORA-12541: TNS:no listener
Goto Forum:
  


Current Time: Sat Nov 29 03:20:53 CST 2014

Total time taken to generate the page: 0.05786 seconds