How to Configure Spirion for Sybase Discovery
Requirements
Read should be the only permission that is needed to search a database. To test you can run a query to get data under the same user, if it can query data then the Spirion Client should be able to do it also using the same user credentials.
How to Install Sybase Client
Discovery of Sybase requires a component of the Sybase Open Client with the libsybct.dll or libct.dll in a location registered in the PATH System variable.
- A good way to accomplish this is a requirement is to download and install the SDK for Adaptive Server Enterprise for your respective version of Sybase.
- When installing the SDK, select the Custom installation option and ensure that at minimum Open Client>DB-Library is selected.

NOTE – You may need to restart your machine after installation in order to add the location of the client DLLs to the system PATH environment variable. This can be confirmed by reviewing the PATH system variable to ensure that C:\SAP\OCS-16_0\dll has been added.
How to Create a sql.ini File
A sql.ini file is used by the client to reference need path information to the database server. After the client is installed create a sql.ini file in c:\SAP\ini with a configuration to match your installation. This INI file may be copied directly from the Sybase server, however, only the query service type is needed.
Take note of the server name between the square brackets in the INI file as this will be used as the server name in the connection configuration. In the example below the server name is sybase1 will be used.
Note: In this example, it is configured to use port 5020

How to Configure and Test
Initial database configuration and testing are best accomplished using the Spirion Client for Windows. Once the connection string is successfully built and tested it can be copied to a console policy for a scheduled search process.
Configuration of Sybase requires:
- Server Name - Server name comes from a sql.ini file that identifies the server by IP and port
- User Name - Valid account with at least read permissions to the target databases
- Password - Valid password for the User Name being used to connection
(Optional) Database Name - a specified database on the targeted server
Use the following steps to Configure and Test Connection:
- Launch the Spirion Client for Windows.
- Click the Locations tab.
- Click the arrow below Databases and select Customize Database Settings

- Click in the Database Type field to reveal the drop down of built in connections.

- Click Sybase
- Click the Configure button
- Enter the field data.

- Click the Test Connection button.
When the connection is successful a message is displayed.
If the connection is unsuccessful review the connection fields and the troubleshooting section of this article. - Now the search can be executed from the client or the connection string can be added to the scheduled task policy to be executed via the console. To copy the connection string highlight the entire string and copy.

How to Troubleshoot
If the Test Connection action fails, the current log provides information that is useful for troubleshooting.
The logs for interactive searches are located at "C:\Users\<YourProfileName>\AppData\Local\Identity Finder\logs," or more easily from the client user interface using the following steps:
- Launch the Spirion Client for Windows.
- Click the Configuration tab
- Click the smaller arrow below Logging
- Select View Current Log

The following is a list of common log messages and their resolutions:
- Error: Unable to open database (libsybct.dll: The specified module could not be found. libct.dll: The specified module could not be found. DBMS API Library loading fails This library is a part of DBMS client installation, not SQLAPI++ Make sure DBMS client is installed and this required library is available for dynamic loading):
- Resolution: Ensure the SDK for Adaptive Server Enterprise has been installed and the location to libsybct.dll is added to the PATH system variable on the client.
- Error: Unable to open database (cs_ctx_alloc -> CS_MEM_ERROR)
- Resolution: Ensure the SDK for Adaptive Server Enterprise has been installed and the location to libsybct.dll is added to the PATH system variable on the client.
- Error: Unable to open database (Login failed.)
Resolution: validate and supply correct username and password