Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MS Windows Platform
Heterogeneous Services is an integrated component within the Oracle server, and provides the
generic technology for accessing non-Oracle systems from the Oracle server.
This article shows how Oracle's Heterogeneous Services can be configured to allow an Oracle
Database to connect to a Microsoft Access database using standard databases links on Microsoft
Windows Platform.
If you do not have a MS-Access environment create a new Access file and create a table with the
name EMPLOYEE
1- ID Number
2- NAME Text
3- SAL Number
4- JOB Text
NOTE: It is not sufficient to only install Client Software, as we require an Oracle Net Listener and
the Heterogeneous Services (ORACLE_HOME\hs directory) software to be installed as well.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = seca14.siliconegypt.com)(PORT = 1521))
)
)
)
SID_LIST_LISTENER=
(SID_LIST =
(SID_DESC =
(SID_NAME = hsodbc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = hsodbc)
)
)
Stop and start the listener service or from the command line:
C:\> lsnrctl stop
C:\> lsnrctl start
HS_FDS_CONNECT_INFO = odbc1
HS_FDS_TRACE_LEVEL = off
From now on we are going to work on the Oracle Server (Unix or whatever you run) add the
following TNSNAMES.ORA entry:
access_db.world =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = seca14.siliconegypt.com) (PORT = 1521)
)
(CONNECT_DATA =
(SID = hsodbc)
)
(HS=OK)
)
Ensure you can tnsping the new entry before continuing.
The tables in the access database can now be queried from the Oracle environment.
SQL>COMMIT;