Sybase ODBC driver Getting Started Guide
This guide shows you how to download, install, and license the Sybase ODBC driver.
At the end, you will be able to access your Sybase database using isql, an interactive SQL tool included in the ODBC driver distribution.
Step 1: What you need to know
Before you begin, contact your database administrator for the following information:
- A database name, user name and password as well as the host name, on which the database is running, and the port on which Sybase is listening.
Step 2: Download the Sybase ODBC driver distribution
-
Log in at the Easysoft web site.
If you have not yet done so, you need to register first. On the registration form, an asterisk (*) indicates that a field is mandatory.
- Download the Easysoft Sybase ODBC driver distribution for your platform.
- Save the distribution file to a temporary directory on the machine where you want to install the Sybase ODBC driver.
Step 3: Install the Sybase ODBC driver
Note You need root access on the machine where you want to install the Sybase ODBC driver.
- Log in to your client system and
cd
into the directory where you downloaded the Sybase ODBC driver distribution. For example:cd /tmp
- Unpack the distribution file:
tar -xvf odbc-sybase-version-platform.tar
Replace version and platform with the version number and platform contained in the distribution file name.
cd
into the directory created by unpacking the distribution file.- To start the installation, as
root
, enter:./install
- Accept the default choices throughout the installation by pressing Return. To accept the terms of the Easysoft End User License Agreement, enter
Yes
. At certain points in the installation, the installation script pauses to report its progress. To continue to the next stage, press Return. - When prompted to choose a product to license, choose the Sybase ODBC driver by typing its option number.
Next, you need to supply:
- Your full name.
- Your company name.
- An email contact address. This must be the email address you registered on the Easysoft web site.
- Your telephone number (you need to specify this if you telephone the license request to us).
- A reference number. When requesting a trial license just press Enter. This field is used to enter a reference number we will supply you for full (paid) licenses.
The license client asks you to choose a method for obtaining the license. To obtain a license automatically, you need to be connected to the Internet and allow outgoing connections to
license.easysoft.com
on port 8884. If you are not connected to the Internet or do not allow outgoing connections through port 8884, the license client can create a license request file, which you can:- Enter at the Easysoft web site to obtain your license.
- Supply to Easysoft by email or telephone.
If you choose option [2], the license request is written to a file named
license_request.txt
and you should exit the license client (option [0]) and complete the installation. Once you have emailed or telephoned the license request to us, we will return a license key. Add this to the end of the file/usr/local/easysoft/license/licenses
.At the end of the installation, you will have installed and licensed the Sybase ODBC driver, installed the unixODBC Driver Manager, and created an ODBC data source.
- Set and export the
LD_LIBRARY_PATH
environment variable:LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/easysoft/lib:/usr/local/easysoft/unixODBC/lib export LD_LIBRARY_PATH
Note On AIX, replace
LD_LIBRARY_PATH
withLIBPATH
.
Step 4: Access an Sybase ODBC driver data source
The Sybase ODBC driver installation creates a sample data source named demo-sybase
that you can use as a starting point.
- As root, open
/etc/odbc.ini
in a text editor. - To locate the sample data source, search for
[demo-sybase]
. - Change these attribute values:
Attribute Value Database
Your Sybase database. User
The Sybase user. Password
The password for the user name specified by User
.Server_Host
The host name (or IP address) of the machine where Sybase instance running. - Use isql to test the new data source:
cd /usr/local/easysoft/unixODBC/bin ./isql.sh -v demo-sybase
- At the prompt, enter a
SELECT
statement. For example:SQL> SELECT @@version
or enter
help
to display a list of tables. To exit, press Return in an empty prompt line.
What next?
You are now ready to use the Sybase ODBC driver with your own applications and development tools on your UNIX or Linux Sybase client machine.
Further support
- The Easysoft Sybase ODBC driver User's Guide provides detailed installation instructions. This manual is also available as a PDF.
- The Easysoft Sybase ODBC driver Knowledge Base.
- To contact the Easysoft support team, send an email message to .