DG4ODBC 11.2 ORA-12012 Scheduled Job Fails To Execute Over DBlink To SQL Server (Doc ID 1459985.1)

Last updated on JANUARY 29, 2013

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.

Symptoms

.
A stored procedure in Scheduled Jobs has a database link to SQL Server.
This procedure is run using the Oracle Database Gateway for ODBC (DG4ODBC) 11.2.0.3 running on Microsoft Windows (32-bit)
The procedure can be execued successfully with DBMS_SCHEDULER.RUN_JOB('CCD_INGEST_EP');

but fails when you use  DBMS_SCHEDULER to run the job at a later date.

Error messages will appear in the alert.log

Errors in file D:\APP\ORACLE\diag\rdbms\ccdreplt\ccdreplt\trace\ccdreplt_j000_3016.trc:
ORA-12012: error on auto execute of job "CCD"."CCD_INGEST_MN"
ORA-20004: CCDINGESTSTART ERROR: DBLink Execute Failure for the following:  select "TDISSiteID", "TDISSiteCode","AgencyUTCDiff", "TDISDatabaseVersion" from dbo.CCDIngestAgencyInfo@TDIS_MN.WSF
ORA-06512: at "CCD.CCDINGESTSTART", line 301
ORA-20004:
ORA-28513: internal error in heterogeneous remote agent
ORA-02063: preceding line from TDIS_MN.WSF
ORA-06512: at line 1

In the trace file listed in the alert.log

Trace file D:\APP\ORACLE\diag\rdbms\ccdreplt\ccdreplt\trace\ccdreplt_j000_3016.trc

 
ORA-12012: error on auto execute of job "CCD"."CCD_INGEST_EP"
ORA-20004: CCDINGESTSTART ERROR: DBLink Execute Failure for the following:  select "TDISSiteID", "TDISSiteCode","AgencyUTCDiff", "TDISDatabaseVersion" from dbo.CCDIngestAgencyInfo@TDIS_EP.WSF
ORA-06512: at "CCD.CCDINGESTSTART", line 301
ORA-20004:
ORA-28513: internal error in heterogeneous remote agent
ORA-02063: preceding line from TDIS_EP.WSF
ORA-06512: at line 1

Cause

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