11g Heterogeneous Agent

There are quite a few nice changes in the 11g Gateways that are worth checking out.... from performance to standalone agent to legacy integration. As with a lot of things in life, when you start scratching the surface you find lots of cool and interesting stuff - and in amongst a few things you don't want to find too of course! Here's a few initial findings on setup....

The software firstly for 11g is under the 'See All' section next to the database platform download.

Gateway1:

When you click on 'See All' further down the page you will find the Gateway zip, this is a standalone install that has the Gateway Heterogeneous Agent and also the legacy connect and designer utilities amongst others.

Gateway2:

A change in 11g is that the agent can be installed on its own node or wherever you decide which is great, it can also be used with existing 10.2 database releases which is even better. See the certification matrices below for connection details:

The install and configuration is generally better, there are a few differences such as having to run some scripts on the source system (if you are reverse engineering) - see the SQLServer example for details, and various other gotchas.


Firstly lets check the SQLServer Database Gateway for example...

A lot of people blast on without reading the manual, I am one of those people too. There are some changes to how the Gateway is configured that you should be aware of. In the installation and configuration guide check the section 'Create SQL Server Views for Data Dictionary Support',  these are needed in order to reverse engineer from SQLServer, the views are used by the database's transparent gateway views used by OWB in the import/reverse engineering process - so remember and define them on your source! After this it was fairly straightforward.

Looking at a simple example..
Firstly I thought I'd start off simple using a simple Excel document. With 11g Gateways I can now have an agent on my windows box and use my Linux 11g database to read the document. On my windows host under the gateway Oracle home I create a file initMYEXCEL.ora under hs/admin with the following content:

HS_FDS_CONNECT_INFO = MYEXCEL_DSN
HS_FDS_SUPPORT_STATISTICS=FALSE
HS_FDS_TRANSACTION_ISOLATION=NONE
HS_FDS_TRACE_LEVEL = DEBUG

The trace setting is INVALUABLE whilst you are setting this up, the trace in this case will be written to hs/trace. In the gateway Oracle home's listener.ora file I added a listener for the service:
SID_LIST_LISTENER=
   (SID_LIST=
      (SID_DESC=
         (SID_NAME=MYEXCEL)
         (ORACLE_HOME=C:\product\11.1.0\tg_1)
         (PROGRAM=dg4odbc)
      )
   )

On my database home where I wish to connect to the agent I add an entry in the tnsnames.ora to connect to my Heterogeneous agent:
MYEXCEL_TNS =
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = myhost) (PORT = 1521))) (CONNECT_DATA = (SID = MYEXCEL ))(HS = OK))

I can then create a database link that uses this to test:
create database link MYEXCEL_DBL 'MYEXCEL_TNS';

Now I can query the catalog for this schema and also query the tables in the Excel document;
select TABLE_NAME from ALL_TABLES@MYEXCEL_DBL;

If this fails (with 'Optional feature not implemented' message) rerun the query, this is a bug (6701400). With 11g this seems to happen with 1st query after the link has been created, every other use is OK. Also this is specific to ODBC Gateway reading from a read-only Excel data source. I was able to use this 11g agent on Windows  with a 10gR2 database on Linux and transparently read the Excel document. So lots of potential once this bug is resolved, also Gateway bug 6883247 is an issue (this was raised after bug 6701461 was raised on OWB, it is actually a database/gateway bug).

This is a quick run through of some initial findings time, permitting I'd like to write up some more of these features that can be leveraged from OWB, the following areas jump to mind;
  • Integrating legacy data using the 11g Studio for legacy integration
  • Parallelizing loading of stage tables using Gateway

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

ETL, CDC, Real-Time DI and Data Quality for the Oracle Database from the inside.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today