Generic Connectivity Not Working (Oracle -Ms Access) [message #411899] |
Tue, 07 July 2009 04:56 |
OraKaran
Messages: 183 Registered: March 2008 Location: United Kingdom
|
Senior Member |
|
|
Hi,
I am trying to establish connection from Oracle to Ms Access (before I can start with SQL server etc).
However it is not working.
I am getting "ORA-28545: error diagnosed by Net8 when connecting to an agent" error
along with
"Unable to establish RPC connection to HS Agent"
I am unable to understand which step I am missing.
Please help
Thanks and Regards,
OraKaran
Following are the configuration setps I carried out
Oracle 10g installed on Linux server Sever1
MS Access is installed on my windows XP machine
On My Windows machine -Client1
1)
Opened MS Access
Created Table named Table1
Saved the file as db1
2)
Data Source(ODBC)->System DSN->Add->Microsoft Access Driver (*.mdb)->Data Source Name->Entered "TEST" ->(Database) Select ->select "db1" ->OK
On Server1
1)
cd $ORACLE_HOME/hs/admin
cp inithsodbc.ora inittest.ora
2)
edit inittest.ora
HS_FDS_CONNECT_INFO = mdb
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/lib/libodbc.so
set ODBCINI = /usr/lib/libodbc.so
On Server1
3)
add entry in Listener.ora
(SID_DESC =
(SID_NAME = TEST)
(ORACLE_HOME = /data/oracle/product/10.2.0/db)
(PROGRAM = hsodbc)
)
On Server1
4)
add entry in Tnsnames.ora
TEST =
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=server1.domain)
(PORT=1521)
)
)
(CONNECT_DATA=(SID=TEST))
(HS=OK)
)
On Server1
5)
lsnrctl stop
lsnrctl start
tnsping TEST
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS_LIST= (ADDRESS= (PROTOCOL=TCP) (HOST=Server1.domain) (PORT=1521))) (CONNECT_DATA=(SID=TEST)) (HS=OK))
OK (10 msec)
6)
create database link test using '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Server1)(PORT=1521))(CONNECT_DATA=(SID=TEST))(HS=OK))';
{tried Server.doamin also as
create database link test using '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Server1.domain)(PORT=1521))(CONNECT_DATA=(SID=TEST))(HS=OK))';}
Server1
7)
select * from table1@test
select * from table1@test
*
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 TEST
Alert.log
HS: Unable to establish RPC connection to HS Agent...
HS: ... Agent SID = (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(Server1)(PORT=1521))(CONNECT_DATA=(SID=TEST))), NCR error = 65535 Unable to retrieve text of NETWORK/NCR message 65535
|
|
|
|
Re: Generic Connectivity Not Working (Oracle -Ms Access) [message #411916 is a reply to message #411905] |
Tue, 07 July 2009 05:21 |
OraKaran
Messages: 183 Registered: March 2008 Location: United Kingdom
|
Senior Member |
|
|
Hi gentlebabu,
Many Thanks for the quick reply
As you can see there is hardly any configuration related to Listener.ora and Tnsnames.ora. In fact I have copy/paste it from my files.
Also checked with TNSPING.
Could you please advice me if the steps I have followed are correct?
I am not confident as the Metalink Note 109730.1 says
"Install the third party ODBC driver from Microsoft"
which is confusing me.
Thanks and Regards,
OraKaran
|
|
|
|
|
|
Re: Generic Connectivity Not Working (Oracle -Ms Access) [message #411963 is a reply to message #411899] |
Tue, 07 July 2009 06:16 |
OraKaran
Messages: 183 Registered: March 2008 Location: United Kingdom
|
Senior Member |
|
|
Hi gentlebabu,
I executed the query mentioned in Step 2 and it returns following result
SQL> col FDS_CLASS_COMMENTS format a30
SQL> select * from SYS.HS_FDS_CLASS;
FDS_CLASS_NAME FDS_CLASS_COMMENTS FDS_CLASS_ID
------------------------------ ------------------------------ ------------
BITE Built-In Test Environment 1
even I tried configuring another Listener with another port but nothing works
1)Listener.ora
LISTENER1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Server1.domain)(PORT = 1523))
)
SID_LIST_LISTENER1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = TEST)
(ORACLE_HOME = /data/oracle/product/10.2.0/db)
(PROGRAM = hsodbc)
)
)
2) Tnsnames.ora
TEST =
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=Server1.domain)
(PORT=1523)
)
)
(CONNECT_DATA=(SID=TEST))
(HS=OK)
)
3)lsnrctl start LISTENER1
tnsping test
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 07-JUL-2009 16:31:40
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS_LIST= (ADDRESS= (PROTOCOL=TCP) (HOST=Server1.domain) (PORT=1523))) (CONNECT_DATA=(SID=TEST)) (HS=OK))
OK (0 msec)
4)
SQL> create database link test using '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Server1.domain)(PORT=1523))(CONNECT_DATA=(SID=TEST))(HS=OK))';
|
|
|
|
|
|
|
|
|
Re: Generic Connectivity Not Working (Oracle -Ms Access) [message #412142 is a reply to message #411899] |
Tue, 07 July 2009 23:54 |
OraKaran
Messages: 183 Registered: March 2008 Location: United Kingdom
|
Senior Member |
|
|
hi gentlebabu,
Thanks for patience
As I can see in your last reply the following error was replicated when SID was different in tnsnames.ora and listener.ora
in my case in my case it is the same ->'TEST'
Please suggest, I am really worried now
Thanks and Regards,
OraKaran
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 MSACCESS
My tnsnames.ora and listener.ora are as follows
TEST =
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=Server1.domain)
(PORT=1523)
)
)
(CONNECT_DATA=(SID=TEST))
(HS=OK)
)
------------------------------
LISTENER1G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Server1.domain)(PORT = 1523))
)
SID_LIST_LISTENER1G =
(SID_LIST =
(SID_DESC =
(SID_NAME = TEST)
(ORACLE_HOME = /data2/oraclestd/product/10.2.0/db)
(PROGRAM = hsodbc)
)
)
|
|
|
|
|
|
Re: Generic Connectivity Not Working (Oracle -Ms Access) [message #412151 is a reply to message #411899] |
Wed, 08 July 2009 00:39 |
OraKaran
Messages: 183 Registered: March 2008 Location: United Kingdom
|
Senior Member |
|
|
Hi gentlebabu,
I am chaging the files, only thing is according to the listener.ora you have mentioned, seems I will need to mention port as 1522 in my tnsnames.ora
also I will change my inittest.ora as inithsodbc.ora and SID in db link as well
Hope my understanding is correct
Thanks and Regards,
OraKaran
|
|
|
|
Re: Generic Connectivity Not Working (Oracle -Ms Access) [message #412156 is a reply to message #411899] |
Wed, 08 July 2009 01:05 |
OraKaran
Messages: 183 Registered: March 2008 Location: United Kingdom
|
Senior Member |
|
|
Hi gentlebabu,
after the changes suggested by you new error is as follows
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][unixODBC][Driver Manager]Data source name not
found, and no default driver specified (SQL State: IM002; SQL Code: 0)
ORA-02063: preceding 2 lines from HSODBC
The latest configurations are as follows
inithsodbc.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 = mdb
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/lib/libodbc.so
#
# ODBC specific environment variables
#
set ODBCINI = /usr/lib/libodbc.so
#
# Environment variables required for the non-Oracle system
#
#set <envvar>=<value>
tnsnames.ora
---------------
hsodbc =
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=Server1.domain)
(PORT=1522)
)
)
(CONNECT_DATA=(SID=hsodbc))
(HS=OK)
)
DBLINK
-------
create database link hsodbc using '(DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522)) (CONNECT_DATA=(SID=hsodbc)) (HS=OK))';
SQL> select * from Table1@hsodbc;
select * from Table1@hsodbc
*
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][unixODBC][Driver Manager]Data source name not
found, and no default driver specified (SQL State: IM002; SQL Code: 0)
ORA-02063: preceding 2 lines from HSODBC
|
|
|
|
|
|
Re: Generic Connectivity Not Working (Oracle -Ms Access) [message #412179 is a reply to message #411899] |
Wed, 08 July 2009 02:17 |
OraKaran
Messages: 183 Registered: March 2008 Location: United Kingdom
|
Senior Member |
|
|
Hi gentlebabu,
I assume I need to install Microsoft Access drivers [for ODBC ] on my Linux server.
Could you please point me to any link from where I can download such drivers for Linux 23 bit and Linux 64 bit?
After that will I need to configure odbc.ini?
Many Many thanks for your help
Thanks and Regards,
OraKaran
|
|
|
|
|
Re: Generic Connectivity Not Working (Oracle -MYSQL) [message #658207 is a reply to message #412256] |
Wed, 07 December 2016 02:57 |
dileepkallone
Messages: 2 Registered: December 2007
|
Junior Member |
|
|
Hi,
I am facing an issue while connecting to MySQL database from Oracle (11.2.0). The below error is popping up while testing the database link. Anyone, please help!.
An error was encountered performing the requested operation:
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 MYSQL
28545. 0000 - "error diagnosed by Net8 when connecting to an agent"
*Cause: An attempt to call an external procedure or to issue SQL
to a non-Oracle system on a Heterogeneous Services database link
failed at connection initialization. The error diagnosed
by Net8 NCR software is reported separately.
*Action: Refer to the Net8 NCRO error message. If this isn't clear,
check connection administrative setup in tnsnames.ora
and listener.ora for the service associated with the
Heterogeneous Services database link being used, or with
'extproc_connection_data' for an external procedure call.
Vendor code 28545
-------------
Below is my listener.ora & tnsnames.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = ORCL)
(ORACLE_HOME = F:\Oracle\product\11.2.0\dbhome_1)
)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = F:\Oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = F:\Oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
)
(SID_DESC =
(PROGRAM = hsodbc)
(ORACLE_HOME = F:\Oracle\product\11.2.0\dbhome_1)
(SID_NAME =MySQL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.40.40.14)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
ADR_BASE_LISTENER = F:\Oracle
-------------
TNSNAMES.ORA
-----------
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
MYSQL =
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=MySQL))(HS=OK))
|
|
|
|
|
Re: Generic Connectivity Not Working (Oracle -Ms Access) [message #658237 is a reply to message #411967] |
Wed, 07 December 2016 06:55 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
OraKaran wrote on Tue, 07 July 2009 06:24Hi gentlebabu,
We have few database instances listening on ports 1521 and 1522
Databases do not listen on ports. Listener do.
Quote:with listener name as LISTENER and LISTENER10G
You have already made your installation overly complex.
============================================================================
Please stay after school and write the following sentence 100 times:
One single listener, using the default name of LISTENER and the default port of 1521, is quite capable of -- indeed, WAS DESIGNED TO -- service multiple databases of multiple versions running from multiple homes. Multiple listeners simply adds complications, and for no gain whatsoever.
============================================================================
|
|
|