Easysoft Blog

Thu, January 11 2018

Fine-Tuning Oracle DG40DBC

Recently a customer shared a workaround that resolved an issue that occurred when using our SQL Server ODBC driver to connect Oracle to SQL Server. The error the customer was getting was:

WHERE MyCol = 'MyValue';

17:01:01 [DELETE - 0 row(s), 0.000 secs] [Error Code: 2070, SQL State: 42000]
ORA-02070: database MYLINKEDDATABASE does not support some function in this context

and this was resolved by:

SQL> select fds_class_name from HS_FDS_CLASS;
exec dbms_hs.replace_class_caps('ODBC11.', 564,'ODBC11.',564,

PL/SQL procedure successfully completed.

SQL> commit;

Commit complete

In Oracle, "SELECT FDS_CLASS_NAME FROM HS_FDS_CLASS" will return a string that identifies your DG4ODBC version. E.g.:


Running this query:


returns a number of "capabilities" that show how DG4ODBC is configured to behave.

In the example shown earlier, the column the customer was an NVARCHAR type. Under the direction of Oracle support, the customer changes how DG4ODBC behaved with regards to this data type.

The customer found the relevant field in HS_CLASS_CAPS:

564 TO_NCHAR(op1) 0

and changed it with the Oracle package, DBMS_HS.ALTER_CLASS_CAPS.

Note that what the various DG4ODBC capabilities do are not, it seems, documented anywhere public. This blog cannot therefore provide specific guidance as to how to use them to resolve a specific problem. Instead, the blog is provided to make you aware that you have another tool at your disposal, if editing parameters in the DG4ODBC configuration file, init<SID>.ora does not resolve any issues your are having with your DG4ODBC connectivity.

See Also