How To Use DBMS_HS_PASSTHROUGH To Send A Query Directly To A Non Oracle Database Using a Database Gateway (Doc ID 2003338.1)

Last updated on APRIL 28, 2015

Applies to:

Oracle Database Gateway for SQL Server - Version 11.2.0.1 to 12.1.0.2 [Release 11.2 to 12.1]
Oracle Database Gateway for DRDA - Version 11.2.0.1 to 12.1.0.2 [Release 11.2 to 12.1]
Oracle Database Gateway for Teradata - Version 11.2.0.1 to 12.1.0.2 [Release 11.2 to 12.1]
Oracle Database Gateway for Sybase - Version 11.2.0.1 to 12.1.0.2 [Release 11.2 to 12.1]
Oracle Database Gateway for Informix - Version 11.2.0.1 to 12.1.0.2 [Release 11.2 to 12.1]
Information in this document applies to any platform.

Goal

How can we enforce that a query that joins different tables on SQL Server is executed completely on the SQL Server and only sends the result set back to Oracle. If we send the query that joins tables then the rows of the SQL Server tables are completely sent to Oracle and post-processed on Oracle for the joins to be made in Oracle. Some of the tables contain millions of records, while the result set of the complete query is not more then 20 records.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms