Configuring Data Ship for Sybase IQ
When Sybase IQ is the target of the data ship, you must perform these steps. Depending on the platform you are installing to, your steps might vary. These steps do not detail every step as might be required by Sybase, refer to your Sybase documentation for further details.
To configure data ship for Sybase
1. | Verify or install a SQL Anywhere Database Client. You can obtain a trial version through the Sybase download site. |
If you don't have SQL Anywhere Database Client and don't want to install one on your Unix system, then you can copy the client into <TDV_install_dir>/sqlanywhere<ver>, because the SQL Anywhere database client has the drivers that are needed for TDV.
2. | Locate the following files in the directory where the Sybase client is installed. |
— | jodbc.jar |
— | libdbjodbc<ver>.so for Unix |
— | dbjodbc<ver>.dll for Windows |
3. | Copy the files to the locations described in the following table: |
OS |
Copy jodbc.jar Into |
Copy dbjodbc<ver>.dll Into |
Windows 64 |
<TDV_install_dir>\apps\common\lib |
<TDV_install_dir>\apps\common\lib\win64 |
Windows 32 |
<TDV_install_dir>\apps\common\lib |
<TDV_install_dir>\apps\common\lib |
UNIX (32 and 64) |
<TDV_install_dir>\apps\common\lib |
<TDV_install_dir>\apps\common\lib |
4. | Stop the TDV Server. |
export LD_LIBRARY_PATH=/opt/<TDV_install_dir>/sqlanywhere<ver>/lib<ver>/
6. | Create an ODBC data source following the guidelines in your Sybase documentation. The following instructions highlight some of the necessary steps depending on your platform |
7. | On Unix, use the following commands to verify that the DSN is set up successfully: |
cd sqlanywhere<ver>/bin<ver>
./dbping -m -c "DSN=test1"
A “Ping server successful” message means that the DSN is working. At this point any application can use the DSN to contact the Sybase IQ through the ODBC Driver.
8. | On Unix, set the global ODBCINI environment variable to point at the SQL Anywhere odbc.ini file. For example, to temporarily set the variable, type: |
export ODBCINI=/opt/<TDV_install_dir>/odbc.ini
9. | Set the QUERY_PLAN_AS_HTML Sybase option to off. For example, run the following SQL command: |
SET OPTION <USER_NAME>.QUERY_PLAN_AS_HTML = OFF;
This setting prevents Sybase from creating extra HTML plan files that can take up too much disk space.
10. | Set the QUERY_NAME option to specify a name for each of the queries generated to help with future database cleanup. |
11. | Start TDV server. |
12. | Continue with the instructions in Finishing Data Ship Configuration for Data Sources. |