This section describes the preliminary steps you must complete before you try to establish communication between Sybase CEP Server and an external database, except if you are using kdb+.
The Sybase CEP kdb+ driver is automatically installed when you install Sybase CEP Server. If you are using kdb+, skip this section and proceed to "Configuring Connections to Databases with User Name, Password, and DSN".
If you have installed an Oracle native driver, skip the rest of the steps in this section.
If you have installed an ODBC driver on a UNIX-like operating system, proceed to the next step.
Sybase CEP Engine has been tested and is supported with the unixODBC Driver Manager. It should also work with the iODBC Driver Manager, but this configuration has not been tested.
For more information on UNIX ODBC, see: http://www.easysoft.com/developer/interfaces/odbc/linux.html.
[FreeTDS] Description = v0.64 with protocol v8.0 Driver = /usr/local/freetds/lib/libtdsodbc.so
This example configures an SQL Server connection on a UNIX-like operating system, using the FreeTDS driver. If you are using a different database, your entry should correspond to your driver.
odbcinst -i -d -t tds.driver.template
with a space between the -t flag and the file name, or:
odbcinst -i -d -f tds.driver.template
Creating the DSN on Microsoft Windows:
Open Windows Control Panel.
Double-click Administrative Tools.
Double-click Data Sources (ODBC).
Click the Add button to add a system, or click user DSN and select the appropriate ODBC driver from the displayed list.
Click the Finish button once you have selected the driver.
Provide the appropriate database connection information on the page that appears. The specific page depends on the driver you select.
When the installing program prompts you to provide the Data Source Name, enter the name you want to use to access the database. This is also the name you will provide when setting the DBDriverConnectString value in the c8-services.xml file.
Creating the DSN on a UNIX-like operating system:
Add a DSN entry to the odbc.ini file, for every system DSN that you or any other user plans to access from your system, or add a user DSN entry to the .odbc.ini file, for every user DSN that a specific user will access.
If you are using unixODBC 2.2.12, the default location of the odbc.ini is in the /usr/local/etc directory. The default location of the .odbc.ini is in the user's home directory. The contents of every DSN entry depend on the ODBC driver that is required by the specific data source.
Note that the Driver line of the DSN entry in the odbc.ini or .odbc.ini file must match the appropriate section entry in the odbcinst.ini file, which describes all the available installed ODBC drivers. The odbcinst.ini file is also located in the /usr/local/etc directory.