Linux

The following describes how to use failover on Linux.

If you are linking to the unixODBC Driver Manager, edit the data source template and reinstall the data source using the unixODBC command line tool:

#  odbcinst -i -s -f dsn template file

where dsn template file is the complete path to the ASE ODBC data source template file.

NoteIf you are directly linking to the ASE ODBC Driver, modify the odbc.ini file.

Following is an example of the odbc.ini data source template file:

[sampledsn]
Driver=Adaptive Server Enterprise
Server=sampleserver
Port=4100
UserID=sa
Password=
Database=pubs2
HASession=1
SecondaryHost=failoverserver
SecondaryPort=5000