If specifying more than one driver when creating a data service, the first driver
listed in the statement is used as
the default driver. Here is an example data service definition:
CREATE DATA SERVICE ORACLE_TEST TYPE ORACLE CATALOG ORACLE_TEST DOMAIN ORA1
{OPTIONS CONOPTS (DRIVER ORACLE, PATH TKTSORA ), CONOPTS (DRIVER ODBC,
ODBC_DSN TRAFFIC)}
In this case, the native ORACLE driver is the default. To change the default driver,
you must first drop the drivers from
the data service using ALTER SERVICE DDL. After dropping the drivers, add the drivers
to the data service putting the default driver first. In the following example, two
drivers, ORACLE and ODBC, are dropped from the ORACLE_TEST data service:
ALTER DATA SERVICE ORACLE_TEST {OPTIONS DROP CONOPTS(DRIVER ORACLE), DROP
CONOPTS(DRIVER ODBC)}
After the drivers are dropped, add the drivers again,
specifying ODBC first so that it becomes the default driver:
ALTER DATA SERVICE ORACLE_TEST {OPTIONS ADD CONOPTS ( DRIVER ODBC, ODBC_DSN
TRAFFIC ), ADD CONOPTS ( DRIVER ORACLE, PATH TKTSORA ) }